|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.tritonus.lowlevel.esd.Esd
org.tritonus.lowlevel.esd.EsdSample
public class EsdSample
| Field Summary |
|---|
| Fields inherited from class org.tritonus.lowlevel.esd.Esd |
|---|
ESD_BITS16, ESD_BITS8, ESD_MONO, ESD_PLAY, ESD_STEREO, ESD_STREAM |
| Constructor Summary | |
|---|---|
EsdSample()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.tritonus.lowlevel.esd.Esd |
|---|
isLibraryAvailable, loadNativeLibrary |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EsdSample()
| Method Detail |
|---|
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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||