Package org.red5.codec
Class SpeexAudio
- java.lang.Object
-
- org.red5.codec.SpeexAudio
-
- All Implemented Interfaces:
IAudioStreamCodec
public class SpeexAudio extends Object implements IAudioStreamCodec
Red5 audio codec for the Speex audio format. Stores the decoder configuration- Author:
- Paul Gregoire (mondain@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description SpeexAudio()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddData(org.apache.mina.core.buffer.IoBuffer data)Update the state of the codec with the passed data.booleancanHandleData(org.apache.mina.core.buffer.IoBuffer data)Returns true if the codec knows how to handle the passed stream data.org.apache.mina.core.buffer.IoBuffergetDecoderConfiguration()Returns information used to configure the decoder.StringgetName()voidreset()Reset the codec to its initial state.
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceIAudioStreamCodec- Returns:
- the name of the audio codec.
-
reset
public void reset()
Description copied from interface:IAudioStreamCodecReset the codec to its initial state.- Specified by:
resetin interfaceIAudioStreamCodec
-
canHandleData
public boolean canHandleData(org.apache.mina.core.buffer.IoBuffer data)
Description copied from interface:IAudioStreamCodecReturns true if the codec knows how to handle the passed stream data.- Specified by:
canHandleDatain interfaceIAudioStreamCodec- Parameters:
data- some sample data to see if this codec can handle it.- Returns:
- can this code handle the data.
-
addData
public boolean addData(org.apache.mina.core.buffer.IoBuffer data)
Description copied from interface:IAudioStreamCodecUpdate the state of the codec with the passed data.- Specified by:
addDatain interfaceIAudioStreamCodec- Parameters:
data- data to tell the codec we're adding- Returns:
- true for success. false for error.
-
getDecoderConfiguration
public org.apache.mina.core.buffer.IoBuffer getDecoderConfiguration()
Description copied from interface:IAudioStreamCodecReturns information used to configure the decoder.- Specified by:
getDecoderConfigurationin interfaceIAudioStreamCodec- Returns:
- the data for decoder setup.
-
-