org.xith3d.sound
Interface SoundBuffer
- All Known Implementing Classes:
- SoundBufferImpl, SoundBufferImpl
public interface SoundBuffer
A sound buffer is a piece of memory which stores the PCM format of the sound
to be played. Streaming sounds actually use a double buffer approach to
playing sounds. This allows the sound file to be loaded and decompressed in
pieces, reducing memory usage.
The implementation of the buffer is dependent on the underlying API used by
the driver.
|
Method Summary |
void |
setData(BufferFormat format,
int size,
int frequency,
java.nio.ByteBuffer data)
|
setData
void setData(BufferFormat format,
int size,
int frequency,
java.nio.ByteBuffer data)