net.java.sip.communicator.impl.media.codec.audio.speex
Class JavaDecoder

java.lang.Object
  extended by com.sun.media.BasicPlugIn
      extended by com.sun.media.BasicCodec
          extended by com.ibm.media.codec.audio.AudioCodec
              extended by net.java.sip.communicator.impl.media.codec.audio.speex.JavaDecoder
All Implemented Interfaces:
Codec, Controls, PlugIn

public class JavaDecoder
extends com.ibm.media.codec.audio.AudioCodec

Speex to PCM java decoder

Author:
Damian Minkov

Field Summary
 
Fields inherited from class com.ibm.media.codec.audio.AudioCodec
DEBUG, defaultOutputFormats, inputFormat, outputFormat, PLUGIN_NAME, supportedInputFormats, supportedOutputFormats
 
Fields inherited from class com.sun.media.BasicCodec
inputFormats, opened, outputFormats, pendingEOM
 
Fields inherited from class com.sun.media.BasicPlugIn
controls
 
Fields inherited from interface javax.media.PlugIn
BUFFER_PROCESSED_FAILED, BUFFER_PROCESSED_OK, INPUT_BUFFER_NOT_CONSUMED, OUTPUT_BUFFER_NOT_FILLED, PLUGIN_TERMINATED
 
Constructor Summary
JavaDecoder()
           
 
Method Summary
 void close()
           
protected  Format[] getMatchingOutputFormats(Format in)
           
 void open()
           
 int process(Buffer inputBuffer, Buffer outputBuffer)
           
 
Methods inherited from class com.ibm.media.codec.audio.AudioCodec
checkFormat, getInputFormat, getName, getOutputFormat, getSupportedInputFormats, getSupportedOutputFormats, setInputFormat, setOutputFormat
 
Methods inherited from class com.sun.media.BasicCodec
checkEOM, checkInputBuffer, getArrayElementSize, isEOM, processAtEOM, propagateEOM, reset, updateOutput
 
Methods inherited from class com.sun.media.BasicPlugIn
error, getClassForName, getControl, getControls, getInputData, getNativeData, getOutputData, matches, plugInExists, validateByteArraySize, validateData, validateIntArraySize, validateShortArraySize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.media.Controls
getControl, getControls
 

Constructor Detail

JavaDecoder

public JavaDecoder()
Method Detail

getMatchingOutputFormats

protected Format[] getMatchingOutputFormats(Format in)
Overrides:
getMatchingOutputFormats in class com.ibm.media.codec.audio.AudioCodec

open

public void open()
Specified by:
open in interface PlugIn
Overrides:
open in class com.sun.media.BasicCodec

close

public void close()
Specified by:
close in interface PlugIn
Overrides:
close in class com.sun.media.BasicCodec

process

public int process(Buffer inputBuffer,
                   Buffer outputBuffer)
Specified by:
process in interface Codec
Specified by:
process in class com.sun.media.BasicCodec