public interface SoundReference
Modifier and Type | Method and Description |
---|---|
long |
bytesAvailable()
Get the number of bytes remaining for each channel.
|
void |
dispose()
Does any cleanup necessary to dispose of resources in use by this
SoundReference.
|
double |
getPan()
Gets the pan of this SoundReference.
|
int |
getSoundID()
Get the ID of the Sound that produced this SoundReference.
|
double |
getVolume()
Gets the volume of this SoundReference.
|
void |
nextTwoBytes(int[] data,
boolean bigEndian)
Get the next two bytes from the sound data in the specified endianness.
|
void |
skipBytes(long num)
Skip a specified number of bytes of the audio data.
|
int getSoundID()
double getVolume()
double getPan()
long bytesAvailable()
void skipBytes(long num)
num
- number of bytes to skipvoid nextTwoBytes(int[] data, boolean bigEndian)
data
- length-2 array to write in next two bytes from each channelbigEndian
- true if the bytes should be read big-endianvoid dispose()