public class RawReader
extends java.lang.Object
Constructor and Description |
---|
RawReader() |
Modifier and Type | Method and Description |
---|---|
static short[] |
readAudioData(java.io.InputStream audioStream,
javax.sound.sampled.AudioFormat audioFormat)
Reads raw bytes from the given audioStream and returns samples based on the audioFormat.
|
public static short[] readAudioData(java.io.InputStream audioStream, javax.sound.sampled.AudioFormat audioFormat) throws java.io.IOException
audioStream
- the stream containing the raw bytesaudioFormat
- a hint of what to expect from the streamjava.io.IOException
- if IO went wrong