Package io.antmedia.muxer.parser.codec
Class AACAudio
java.lang.Object
io.antmedia.muxer.parser.codec.AACAudio
- All Implemented Interfaces:
IAudioStreamCodec
Red5 audio codec for the AAC audio format.
Stores the decoder configuration
- Author:
- Paul Gregoire ([email protected]), Wittawas Nakkasem ([email protected]), Vladimir Hmelyoff ([email protected])
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int[]private byte[]Block of data (AAC DecoderConfigurationRecord)(package private) static final StringAAC audio codec constantprivate static org.slf4j.Logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddData(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.IoBufferReturns information used to configure the decoder.getName()voidreset()Reset the codec to its initial state.
-
Field Details
-
log
private static org.slf4j.Logger log -
AAC_SAMPLERATES
public static final int[] AAC_SAMPLERATES -
CODEC_NAME
AAC audio codec constant- See Also:
-
blockDataAACDCR
private byte[] blockDataAACDCRBlock of data (AAC DecoderConfigurationRecord)
-
-
Constructor Details
-
AACAudio
public AACAudio()Constructs a new AACAudio
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceIAudioStreamCodec- Returns:
- the name of the audio codec.
-
reset
public void reset()Reset the codec to its initial state.- Specified by:
resetin interfaceIAudioStreamCodec
-
canHandleData
public boolean canHandleData(org.apache.mina.core.buffer.IoBuffer data) Returns 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) Update 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()Returns information used to configure the decoder.- Specified by:
getDecoderConfigurationin interfaceIAudioStreamCodec- Returns:
- the data for decoder setup.
-