public class JavaSoundCodec extends AbstractCodec
inputFormat, inputFormats, opened, outputFormat
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED
Constructor and Description |
---|
JavaSoundCodec() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
createAuHeader(javax.sound.sampled.AudioFormat f)
Used to create a "fake" AU header for fakeHeader.
|
static byte[] |
createWavHeader(javax.sound.sampled.AudioFormat f)
See http://ccrma.stanford.edu/courses/422/projects/WaveFormat/.
|
static void |
encodeShortBE(short value,
byte[] ba,
int offset) |
static void |
encodeShortLE(short value,
byte[] ba,
int offset) |
Format[] |
getSupportedOutputFormats(Format input) |
void |
open() |
int |
process(Buffer input,
Buffer output) |
checkInputBuffer, dump, getInputFormat, getOutputFormat, getSupportedInputFormats, isEOM, propagateEOM, setInputFormat, setOutputFormat
close, getName, reset
addControl, getControl, getControls, removeControl
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getControl, getControls
public Format[] getSupportedOutputFormats(Format input)
getSupportedOutputFormats
in interface Codec
getSupportedOutputFormats
in class AbstractCodec
public void open() throws ResourceUnavailableException
open
in interface PlugIn
open
in class AbstractPlugIn
ResourceUnavailableException
public int process(Buffer input, Buffer output)
process
in interface Codec
process
in class AbstractCodec
public static byte[] createAuHeader(javax.sound.sampled.AudioFormat f)
public static byte[] createWavHeader(javax.sound.sampled.AudioFormat f)
f
- public static void encodeShortLE(short value, byte[] ba, int offset)
public static void encodeShortBE(short value, byte[] ba, int offset)