|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object micromod.output.PCM16StreamOutputDevice micromod.output.OSSOutputDevice
The OSSOutputDevice provides audio output for pre-1.3 Java VMs by outputing directly to the Linux native audio subsystem. The device will operate on any system that provides libMMOSS.so.
Field Summary |
Fields inherited from class micromod.output.PCM16StreamOutputDevice |
bytesPerFrame, CONVERT_BUFFER_FRAMES, convertBuffer, converter |
Constructor Summary | |
OSSOutputDevice(int samplingRate)
|
Method Summary | |
void |
close()
Close the output device and release any resources. |
int |
getSamplingRate()
|
protected void |
ossInit(int samplingRate)
|
void |
pause()
Pause playback immediately. |
void |
start()
Begin playing audio. |
void |
stop()
Stop playback. |
void |
write(byte[] data,
int length)
Write length bytes of audio to the output device This method should return only when all of the audio has been written to the device, except if the device is stopped or paused, in which case the method should return immediately. |
Methods inherited from class micromod.output.PCM16StreamOutputDevice |
initialise, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OSSOutputDevice(int samplingRate) throws OutputDeviceException
Method Detail |
public void start()
OutputDevice
public void write(byte[] data, int length)
StreamOutputDevice
public void pause()
StreamOutputDevice
public void stop()
OutputDevice
public void close()
OutputDevice
public int getSamplingRate()
protected void ossInit(int samplingRate) throws OutputDeviceException
OutputDeviceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |