public class EsdSample extends Esd
ESD_BITS16, ESD_BITS8, ESD_MONO, ESD_PLAY, ESD_STEREO, ESD_STREAM
Constructor and Description |
---|
EsdSample() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the connection to esd.
|
void |
free()
Uncache a sample from the server.
|
void |
kill()
Stop a playing sample immediately.
|
void |
loop()
Play the sample indefinitely.
|
void |
open(int nFormat,
int nSampleRate,
int nLength)
Opens the connection to esd and starts uploading the sample data.
|
void |
play()
Play the sample once.
|
void |
setVolume(int nLeftVolume,
int nRightVolume)
Sets the volume for the sample.
|
void |
stop()
Stop a looping sample at end.
|
int |
write(byte[] abData,
int nOffset,
int nLength)
Uploads a piece of data for the sample.
|
isLibraryAvailable, loadNativeLibrary
public void open(int nFormat, int nSampleRate, int nLength)
public int write(byte[] abData, int nOffset, int nLength)
public void close()
public void play()
public void loop()
public void stop()
public void kill()
public void free()
public void setVolume(int nLeftVolume, int nRightVolume)