public class SoundBuffer extends Object
| Modifier and Type | Field and Description |
|---|---|
byte[] |
audioData
The actual audio data.
|
AudioFormat |
audioFormat
The audio format in which the data is stored.
|
| Constructor and Description |
|---|
SoundBuffer(byte[] audioData,
AudioFormat audioFormat)
Constructor: Wraps the specified data with the specified audio format.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Removes handles to all instantiated objects.
|
void |
trimData(int maxLength)
Trims down the size of the audio data if it is larger than the specified
maximum length.
|
public byte[] audioData
public AudioFormat audioFormat
public SoundBuffer(byte[] audioData,
AudioFormat audioFormat)
audioData - The actual audio data.audioFormat - The audio format in which the data is stored.Copyright © 2017. All rights reserved.