| Modifier and Type | Field and Description |
|---|---|
| public final ByteBuffer | data
actual wave data |
| public final int | format
format type of data |
| public final int | samplerate
sample rate of data |
| Access | Constructor and Description |
|---|---|
| private | WaveData(ByteBuffer
actual wavedata data, int format of wave data format, int sample rate of data samplerate)Creates a new WaveData |
| Modifier and Type | Method and Description |
|---|---|
| private static ByteBuffer | |
| public static WaveData | |
| public static WaveData | |
| public static WaveData | Returns: WaveData containing data, or null if a failure occuredInputStream to read from is)Creates a WaveData container from the specified inputstream |
| public static WaveData | Returns: WaveData containing data, or null if a failure occuredarray of bytes containing the complete wave file buffer)Creates a WaveData container from the specified bytes |
| public static WaveData | Returns: WaveData containing data, or null if a failure occuredByteBuffer containing sound file buffer)Creates a WaveData container from the specified ByetBuffer. |
| public static WaveData | Returns: WaveData containing data, or null if a failure occuredAudioInputStream to read from ais)Creates a WaveData container from the specified stream |
| public void |
| data | back to summary |
|---|---|
| public final ByteBuffer data actual wave data | |
| format | back to summary |
|---|---|
| public final int format format type of data | |
| samplerate | back to summary |
|---|---|
| public final int samplerate sample rate of data | |
| WaveData | back to summary |
|---|---|
| private WaveData(ByteBuffer data, int format, int samplerate) Creates a new WaveData
| |
| convertAudioBytes | back to summary |
|---|---|
| private static ByteBuffer convertAudioBytes(byte[] audio_bytes, boolean two_bytes_data, ByteOrder order) | |
| create | back to summary |
|---|---|
| public static WaveData create(URL path) Creates a WaveData container from the specified url | |
| create | back to summary |
|---|---|
| public static WaveData create(String path) Creates a WaveData container from the specified in the classpath | |
| create | back to summary |
|---|---|
| public static WaveData create(InputStream is) Creates a WaveData container from the specified inputstream
| |
| create | back to summary |
|---|---|
| public static WaveData create(byte[] buffer) Creates a WaveData container from the specified bytes
| |
| create | back to summary |
|---|---|
| public static WaveData create(ByteBuffer buffer) Creates a WaveData container from the specified ByetBuffer. If the buffer is backed by an array, it will be used directly, else the contents of the buffer will be copied using get(byte[]).
| |
| create | back to summary |
|---|---|
| public static WaveData create(AudioInputStream ais) Creates a WaveData container from the specified stream
| |
| dispose | back to summary |
|---|---|
| public void dispose() Disposes the wavedata | |