MAacDecoderConfig Class Reference

class MAacDecoderConfig

This class provides an interface to the AAC decoder CMMFHwDevice in order to provide additional configuration information for decoding raw AAC data blocks.

The sample rate can be configured via the CMMFHwDevice::SetConfig() method. An extension mechanism will be provided for further functionality as required. The CMMFHwDevice does not contain Output channel configuration at time of writing. The HWA decoders to date have been hardcoded for 2ch (left / right) output. Additional configuration information may be provided by using extension mechanisms.

Nested Classes and Structures

Member Functions Documentation

GetSupportedAudioConfigs(RArray< TAudioConfig > &)

TInt GetSupportedAudioConfigs(RArray< TAudioConfig > &aSupportedAudioConfigs)[pure virtual]

Gets additional configuration parameters supported for decoding raw AAC.

This method is allowable when encoding is not active - anytime before the CMMFHwDevice is started.

Parameters

RArray< TAudioConfig > & aSupportedAudioConfigsAn array of structures containing the additional supported configurations.

SetAudioConfig(TAudioConfig &)

TInt SetAudioConfig(TAudioConfig &aAudioConfig)[pure virtual]

Sets additional configuration parameters required for decoding raw AAC.

This method can be called when encoding is not active - anytime before the CMMFHwDevice is started.

For consistent configuration, this method should be called sometime before each start is called on the CMMFHwDevice when decoding raw AAC. That is to say the CMMFHwDevice is not required to retain prior configuration information, detect raw AAC sent to it, and reconfigure the decoder with this saved information after stop is called on the CMMFHwDevice. However, calling pause on the CMMFHwDevice implies that the next start call will be resuming same content. For this condition, this API is not required when restarting the CMMFHwDevice.

Parameters

TAudioConfig & aAudioConfigThe structure containing the additional information required for decoding the raw AAC.