MAacDecoderConfig Class Reference

#include <mmf/server/devsoundstandardcustominterfaces.h>

class MAacDecoderConfig

Nested Classes and Structures

Public Member Functions
pure virtual TInt GetSupportedAudioConfigs(RArray< TAudioConfig > &)
pure virtual TInt SetAudioConfig(TAudioConfig &)

Detailed Description

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.

Member Function 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.

ParameterDescription
aSupportedAudioConfigsAn array of structures containing the additional supported configurations.

Returns: KErrNone if successful. KErrInUse if this method is used when decoding is active.

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.

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

Returns: KErrNone if successful or KErrInUse if this method is used when decoding is active.