loadFromStream(InputStream, int, int, int).
| Modifier and Type | Field and Description |
|---|---|
| public final ByteBuffer | data
The audio data |
| public final int | format
the format of the Data. |
| public final int | freq
The frequency of the data |
| public final boolean | loop
flag indicating whether or not the sound in the data should loop |
| public final int | size
Size (in bytes) of the data |
| Access | Constructor and Description |
|---|---|
| public | WAVData(final ByteBuffer data, final int format, final int size, final int freq, final boolean loop)
|
| Modifier and Type | Method and Description |
|---|---|
| public static WAVData | Returns: a WAVData object containing the audio datainitial buffer capacity in bytes, if > available bytes initialCapacity, final int numChannels, final int bits, final int sampleRate, final ByteOrder byteOrder, final boolean loop)This method loads a (.wav) file into a WAVData object. |
| data | back to summary |
|---|---|
| public final ByteBuffer data The audio data | |
| format | back to summary |
|---|---|
| public final int format the format of the Data. One of: AL.AL_FORMAT_MONO8 AL.AL_FORMAT_MONO16 AL.AL_FORMAT_STEREO8 AL.AL_FORMAT_STEREO16 | |
| freq | back to summary |
|---|---|
| public final int freq The frequency of the data | |
| loop | back to summary |
|---|---|
| public final boolean loop flag indicating whether or not the sound in the data should loop | |
| size | back to summary |
|---|---|
| public final int size Size (in bytes) of the data | |
| WAVData | back to summary |
|---|---|
| public WAVData(final ByteBuffer data, final int format, final int size, final int freq, final boolean loop) | |
| loadFromStream | back to summary |
|---|---|
| public static WAVData loadFromStream(InputStream aIn, final int initialCapacity, final int numChannels, final int bits, final int sampleRate, final ByteOrder byteOrder, final boolean loop) throws IOException This method loads a (.wav) file into a WAVData object.
| |