public class JavaSoundCodec extends AbstractCodec
inputFormat, inputFormats, opened, outputFormatBUFFER_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, setOutputFormatclose, getName, resetaddControl, getControl, getControls, removeControlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetControl, getControlspublic Format[] getSupportedOutputFormats(Format input)
getSupportedOutputFormats in interface CodecgetSupportedOutputFormats in class AbstractCodecpublic void open()
throws ResourceUnavailableException
open in interface PlugInopen in class AbstractPlugInResourceUnavailableExceptionpublic int process(Buffer input, Buffer output)
process in interface Codecprocess in class AbstractCodecpublic 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)