|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SoundContainer
A sound data container is what acts as a generator for the actual sound data
which will be played. Containers load all their data into memory, or they can
load the data in chunks. Chunked data is called by the sound driver on
demand, allowing for data to be decompressed in a double buffered stream.
Important note: Streamable data containers cannot be attached to more than
one source at a time. In general you only need to stream the very large files
and they would use a fairly small amount of memory.
| Method Summary | |
|---|---|
SoundBuffer |
getData(SoundDriver driver)
Gets a buffer to be played. |
boolean |
isStreaming()
|
void |
returnData(SoundDriver driver,
SoundBuffer buffer)
Called by the sound system to indicate that it has finished playing the buffer. |
void |
rewind(SoundDriver driver)
Generally only valid for streaming sound containers. |
| Method Detail |
|---|
boolean isStreaming()
SoundBuffer getData(SoundDriver driver)
void returnData(SoundDriver driver,
SoundBuffer buffer)
buffer - void rewind(SoundDriver driver)
driver -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||