com.tuneology.avm.jesd
Class JEsd

java.lang.Object
  |
  +--com.tuneology.avm.jesd.JEsd

public class JEsd
extends java.lang.Object

API to Esound.

Version:
$Id: JEsd.java,v 1.1 2003/03/19 02:26:07 xnarf Exp $
Author:
ymnk

Field Summary
static int ESD_ADPCM
           
static int ESD_BITS16
           
static int ESD_BITS8
           
static int ESD_BUF_SIZE
           
static int ESD_DEFAULT_PORT
           
static int ESD_DEFAULT_RATE
           
static int ESD_KEY_LEN
           
static int ESD_LOOP
           
static int ESD_MASK_BITS
           
static int ESD_MASK_CHAN
           
static int ESD_MASK_FUNC
           
static int ESD_MASK_MODE
           
static int ESD_MONITOR
           
static int ESD_MONO
           
static int ESD_NAME_MAX
           
static int ESD_PLAY
           
static int ESD_RECORD
           
static int ESD_SAMPLE
           
static int ESD_STEREO
           
static int ESD_STOP
           
static int ESD_STREAM
           
static int ESM_ERROR
           
static int ESM_ON_AUTOSTANDBY
           
static int ESM_ON_STANDBY
           
static int ESM_RUNNING
           
static java.lang.String version
           
 
Constructor Summary
JEsd()
           
JEsd(int port)
           
JEsd(java.lang.String host)
           
JEsd(java.lang.String host, int port)
           
 
Method Summary
 void close()
           
 int confirm_sample_cache()
           
 int file_cache(java.lang.String name_prefix, AudioData data)
           
static JEsd filter_stream(int format, int rate, java.lang.String host, java.lang.String name)
           
 int lock()
           
static JEsd monitor_stream(int format, int rate, java.lang.String host, java.lang.String name)
           
static void play_file(java.lang.String name_prefix, AudioData data, boolean fallback)
           
static JEsd play_stream_fallback(int format, int rate, java.lang.String host, java.lang.String name)
           
static JEsd play_stream(int format, int rate, java.lang.String host, java.lang.String name)
           
 int read(byte[] array, int size)
           
static JEsd record_stream_fallback(int format, int rate, java.lang.String host, java.lang.String name)
           
static JEsd record_stream(int format, int rate, java.lang.String host, java.lang.String name)
           
 int resume()
           
 int sample_cache(int format, int rate, int size, java.lang.String name)
           
 int sample_free(int sample)
           
 int sample_getid(java.lang.String name)
           
 int sample_loop(int sample)
           
 int sample_play(int sample)
           
 int sample_stop(int sample)
           
 void send_file(AudioData file, int bytes_per_frame)
           
 int standby()
           
 int unlock()
           
 int write(byte[] array, int size)
           
 int write(byte[] array, int off, int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

version

public static final java.lang.String version

ESD_MASK_MODE

public static final int ESD_MASK_MODE

ESD_STREAM

public static final int ESD_STREAM

ESD_SAMPLE

public static final int ESD_SAMPLE

ESD_ADPCM

public static final int ESD_ADPCM

ESD_MASK_FUNC

public static final int ESD_MASK_FUNC

ESD_PLAY

public static final int ESD_PLAY

ESD_MONITOR

public static final int ESD_MONITOR

ESD_RECORD

public static final int ESD_RECORD

ESD_STOP

public static final int ESD_STOP

ESD_LOOP

public static final int ESD_LOOP

ESD_BUF_SIZE

public static final int ESD_BUF_SIZE

ESD_NAME_MAX

public static final int ESD_NAME_MAX

ESD_KEY_LEN

public static final int ESD_KEY_LEN

ESM_ERROR

public static final int ESM_ERROR

ESM_ON_STANDBY

public static final int ESM_ON_STANDBY

ESM_ON_AUTOSTANDBY

public static final int ESM_ON_AUTOSTANDBY

ESM_RUNNING

public static final int ESM_RUNNING

ESD_MASK_CHAN

public static final int ESD_MASK_CHAN

ESD_MONO

public static final int ESD_MONO

ESD_STEREO

public static final int ESD_STEREO

ESD_MASK_BITS

public static final int ESD_MASK_BITS

ESD_BITS8

public static final int ESD_BITS8

ESD_BITS16

public static final int ESD_BITS16

ESD_DEFAULT_PORT

public static final int ESD_DEFAULT_PORT

ESD_DEFAULT_RATE

public static final int ESD_DEFAULT_RATE
Constructor Detail

JEsd

public JEsd()
     throws java.io.IOException
Throws:
java.io.IOException -  

JEsd

public JEsd(int port)
     throws java.io.IOException
Parameters:
port -  
Throws:
java.io.IOException -  

JEsd

public JEsd(java.lang.String host)
     throws java.io.IOException
Parameters:
host -  
Throws:
java.io.IOException -  

JEsd

public JEsd(java.lang.String host,
            int port)
     throws java.io.IOException
Parameters:
host -  
port -  
Throws:
java.io.IOException -  
Method Detail

lock

public int lock()
         throws java.io.IOException
Returns:
foo
Throws:
java.io.IOException -  

unlock

public int unlock()
           throws java.io.IOException
Returns:
foo
Throws:
java.io.IOException -  

standby

public int standby()
            throws java.io.IOException
Returns:
foo
Throws:
java.io.IOException -  

resume

public int resume()
           throws java.io.IOException
Returns:
foo
Throws:
java.io.IOException -  

play_stream

public static JEsd play_stream(int format,
                               int rate,
                               java.lang.String host,
                               java.lang.String name)
                        throws java.io.IOException
Parameters:
format -  
rate -  
host -  
name -  
Returns:
foo
Throws:
java.io.IOException -  

play_stream_fallback

public static JEsd play_stream_fallback(int format,
                                        int rate,
                                        java.lang.String host,
                                        java.lang.String name)
                                 throws java.io.IOException
Parameters:
format -  
rate -  
host -  
name -  
Returns:
foo
Throws:
java.io.IOException -  

monitor_stream

public static JEsd monitor_stream(int format,
                                  int rate,
                                  java.lang.String host,
                                  java.lang.String name)
                           throws java.io.IOException
Parameters:
format -  
rate -  
host -  
name -  
Returns:
foo
Throws:
java.io.IOException -  

filter_stream

public static JEsd filter_stream(int format,
                                 int rate,
                                 java.lang.String host,
                                 java.lang.String name)
                          throws java.io.IOException
Parameters:
format -  
rate -  
host -  
name -  
Returns:
foo
Throws:
java.io.IOException -  

record_stream

public static JEsd record_stream(int format,
                                 int rate,
                                 java.lang.String host,
                                 java.lang.String name)
                          throws java.io.IOException
Parameters:
format -  
rate -  
host -  
name -  
Returns:
foo
Throws:
java.io.IOException -  

record_stream_fallback

public static JEsd record_stream_fallback(int format,
                                          int rate,
                                          java.lang.String host,
                                          java.lang.String name)
                                   throws java.io.IOException
Parameters:
format -  
rate -  
host -  
name -  
Returns:
foo
Throws:
java.io.IOException -  

sample_cache

public int sample_cache(int format,
                        int rate,
                        int size,
                        java.lang.String name)
                 throws java.io.IOException
Returns:
foo
Throws:
java.io.IOException -  

confirm_sample_cache

public int confirm_sample_cache()
                         throws java.io.IOException
Returns:
foo
Throws:
java.io.IOException -  

sample_getid

public int sample_getid(java.lang.String name)
                 throws java.io.IOException
Parameters:
name -  
Returns:
foo
Throws:
java.io.IOException -  

sample_free

public int sample_free(int sample)
                throws java.io.IOException
Parameters:
sample -  
Returns:
foo
Throws:
java.io.IOException -  

sample_play

public int sample_play(int sample)
                throws java.io.IOException
Parameters:
sample -  
Returns:
foo
Throws:
java.io.IOException -  

sample_loop

public int sample_loop(int sample)
                throws java.io.IOException
Parameters:
sample -  
Returns:
foo
Throws:
java.io.IOException -  

sample_stop

public int sample_stop(int sample)
                throws java.io.IOException
Parameters:
sample -  
Returns:
foo
Throws:
java.io.IOException -  

file_cache

public int file_cache(java.lang.String name_prefix,
                      AudioData data)
               throws java.io.IOException
Parameters:
name_prefix -  
data -  
Returns:
foo
Throws:
java.io.IOException -  

play_file

public static void play_file(java.lang.String name_prefix,
                             AudioData data,
                             boolean fallback)
                      throws java.io.IOException
Parameters:
name_prefix -  
data -  
fallback -  
Throws:
java.io.IOException -  

send_file

public void send_file(AudioData file,
                      int bytes_per_frame)
               throws java.io.IOException
Parameters:
file -  
bytes_per_frame -  
Throws:
java.io.IOException -  

write

public int write(byte[] array,
                 int size)
          throws java.io.IOException
Parameters:
array -  
size -  
Returns:
foo
Throws:
java.io.IOException -  

write

public int write(byte[] array,
                 int off,
                 int size)
          throws java.io.IOException
Parameters:
array -  
off -  
size -  
Returns:
foo
Throws:
java.io.IOException -  

read

public int read(byte[] array,
                int size)
         throws java.io.IOException
Parameters:
array -  
size -  
Returns:
foo
Throws:
java.io.IOException -  

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException -