Maven module :un.storage : media-aac :
Class : un.storage.media.aac.Decoder
Extends/Implements : -
Subclasses : -

Main AAC decoder class
author  Alexander Simm
author  Johann Sorel


Variables : -
Functions : canDecode, Decoder, getConfig, decodeFrame




The methods returns true, if a profile is supported by the decoder.
param  profile an AAC profile
return  true if the specified profile can be decoded
see  Profile#isDecodingSupported()
public boolean canDecode (Profile profile)


Initializes the decoder with a MP4 decoder specific info.

After this the MP4 frames can be passed to the
decodeFrame(byte[], SampleBuffer) method to decode them.

@param decoderSpecificInfo a byte array containing the decoder specific info from an MP4 container
@throws AACException if the specified profile is not supported
public void Decoder (byte[] decoderSpecificInfo)

public DecoderConfig getConfig ()


Decodes one frame of AAC data in frame mode and returns the raw PCM
data.
param  frame the AAC frame
param  buffer a buffer to hold the decoded PCM data
throws  AACException if decoding fails
public void decodeFrame (byte[] frame, SampleBuffer buffer)