Package com.jcraft.jesd
Class JEsd
java.lang.Object
com.jcraft.jesd.JEsd
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
int
int
file_cache
(String name_prefix, String filename) static JEsd
filter_stream
(int format, int rate, String host, String name) int
lock()
static JEsd
monitor_stream
(int format, int rate, String host, String name) static void
static JEsd
play_stream
(int format, int rate, String host, String name) static JEsd
play_stream_fallback
(int format, int rate, String host, String name) int
read
(byte[] array, int size) static JEsd
record_stream
(int format, int rate, String host, String name) static JEsd
record_stream_fallback
(int format, int rate, String host, String name) int
resume()
int
sample_cache
(int format, int rate, int size, String name) int
sample_free
(int sample) int
sample_getid
(String name) int
sample_loop
(int sample) int
sample_play
(int sample) void
int
standby()
int
unlock()
int
write
(byte[] array, int size) int
write
(byte[] array, int off, int size)
-
Field Details
-
version
- See Also:
-
ESD_MASK_MODE
public static final int ESD_MASK_MODE- See Also:
-
ESD_STREAM
public static final int ESD_STREAM- See Also:
-
ESD_SAMPLE
public static final int ESD_SAMPLE- See Also:
-
ESD_ADPCM
public static final int ESD_ADPCM- See Also:
-
ESD_MASK_FUNC
public static final int ESD_MASK_FUNC- See Also:
-
ESD_PLAY
public static final int ESD_PLAY- See Also:
-
ESD_MONITOR
public static final int ESD_MONITOR- See Also:
-
ESD_RECORD
public static final int ESD_RECORD- See Also:
-
ESD_STOP
public static final int ESD_STOP- See Also:
-
ESD_LOOP
public static final int ESD_LOOP- See Also:
-
ESD_BUF_SIZE
public static final int ESD_BUF_SIZE- See Also:
-
ESD_NAME_MAX
public static final int ESD_NAME_MAX- See Also:
-
ESD_KEY_LEN
public static final int ESD_KEY_LEN- See Also:
-
ESM_ERROR
public static final int ESM_ERROR- See Also:
-
ESM_ON_STANDBY
public static final int ESM_ON_STANDBY- See Also:
-
ESM_ON_AUTOSTANDBY
public static final int ESM_ON_AUTOSTANDBY- See Also:
-
ESM_RUNNING
public static final int ESM_RUNNING- See Also:
-
ESD_MASK_CHAN
public static final int ESD_MASK_CHAN- See Also:
-
ESD_MONO
public static final int ESD_MONO- See Also:
-
ESD_STEREO
public static final int ESD_STEREO- See Also:
-
ESD_MASK_BITS
public static final int ESD_MASK_BITS- See Also:
-
ESD_BITS8
public static final int ESD_BITS8- See Also:
-
ESD_BITS16
public static final int ESD_BITS16- See Also:
-
ESD_DEFAULT_PORT
public static final int ESD_DEFAULT_PORT- See Also:
-
ESD_DEFAULT_RATE
public static final int ESD_DEFAULT_RATE- See Also:
-
-
Constructor Details
-
JEsd
- Throws:
JEsdException
-
JEsd
- Throws:
JEsdException
-
JEsd
- Throws:
JEsdException
-
JEsd
- Throws:
JEsdException
-
-
Method Details
-
lock
public int lock() -
unlock
public int unlock() -
standby
public int standby() -
resume
public int resume() -
play_stream
- Throws:
JEsdException
-
play_stream_fallback
public static JEsd play_stream_fallback(int format, int rate, String host, String name) throws JEsdException - Throws:
JEsdException
-
monitor_stream
public static JEsd monitor_stream(int format, int rate, String host, String name) throws JEsdException - Throws:
JEsdException
-
filter_stream
public static JEsd filter_stream(int format, int rate, String host, String name) throws JEsdException - Throws:
JEsdException
-
record_stream
public static JEsd record_stream(int format, int rate, String host, String name) throws JEsdException - Throws:
JEsdException
-
record_stream_fallback
public static JEsd record_stream_fallback(int format, int rate, String host, String name) throws JEsdException - Throws:
JEsdException
-
sample_cache
-
confirm_sample_cache
public int confirm_sample_cache() -
sample_getid
-
sample_free
public int sample_free(int sample) -
sample_play
public int sample_play(int sample) -
sample_loop
public int sample_loop(int sample) -
file_cache
- Throws:
IOException
-
play_file
public static void play_file(String name_prefix, String filename, boolean fallback) throws IOException - Throws:
IOException
-
send_file
-
write
public int write(byte[] array, int size) -
write
public int write(byte[] array, int off, int size) -
read
public int read(byte[] array, int size) -
close
public void close()
-