MG711DecoderIntfc Class Reference

#include <mmf/server/devsoundstandardcustominterfaces.h>

Link against: tsu_mdf_omxvorbiscodecs.lib

class MG711DecoderIntfc
Public Member Enumerations
enumTDecodeMode { EDecALaw, EDecULaw }
Public Member Functions
pure virtual TInt GetComfortNoiseGeneration(TBool &)
pure virtual TInt GetDecoderMode(TDecodeMode &)
pure virtual TInt GetPacketLossConcealment(TBool &)
pure virtual TInt SetComfortNoiseGeneration(TBool)
pure virtual TInt SetDecoderMode(TDecodeMode)
pure virtual TInt SetPacketLossConcealment(TBool)

Detailed Description

This class provides an interface to the G711 decoder CMMFHwDevice in order to provide additional configuration information.

Member Enumeration Documentation

Enum TDecodeMode

The Decoder mode

EnumeratorValueDescription
EDecALaw

DecALaw

EDecULaw

DecULaw

Member Function Documentation

GetComfortNoiseGeneration ( TBool & )

TInt GetComfortNoiseGeneration(TBool &aCng)[pure virtual]

Used to find out if comfort noise generation is enabled or not.

This method can be called when decoding is not active - anytime before started or after stopped.

ParameterDescription
aCngETrue = Comfort Noise Generation enabled; EFalse = Comfort Noise Generation disabled

Returns: KErrNone if successful. KErrInUse if this method is used when encoding is active. KErrNotSupported if this method is not implemented.

GetDecoderMode ( TDecodeMode & )

TInt GetDecoderMode(TDecodeMode &aDecodeMode)[pure virtual]

Queries the decoder of the encoded data format that has been active.

This method can be called at all times.

ParameterDescription
aDecodeModethe decode mode.

Returns: KErrNone if successful. KErrInUse if this method is used when encoding is active. KErrNotSupported if this method is not implemented.

GetPacketLossConcealment ( TBool & )

TInt GetPacketLossConcealment(TBool &aPlc)[pure virtual]

Used to find out if packet loss concealment capability is enabled or not.

This method can be called when decoding is not active - anytime before started or after stopped.

ParameterDescription
aPlcETrue = packet loss concealment enabled; EFalse = packet loss concealment disabled

Returns: KErrNone if successful. KErrInUse if this method is used when encoding is active. KErrNotSupported if this method is not implemented.

SetComfortNoiseGeneration ( TBool )

TInt SetComfortNoiseGeneration(TBoolaCng)[pure virtual]

Used to enable and disable the comfort noise generation capability.

This method can be called when decoding is not active - anytime before started or after stopped.

ParameterDescription
aCngETrue = Comfort Noise Generation enabled; EFalse = Comfort Noise Generation disabled

Returns: KErrNone if successful. KErrInUse if this method is used when encoding is active. KErrNotSupported if this method is not implemented.

SetDecoderMode ( TDecodeMode )

TInt SetDecoderMode(TDecodeModeaDecodeMode)[pure virtual]

Informs the decoder of the encoded data format that will be sent to it.

This method can be called when decoding is not active - anytime before started or after stopped.

ParameterDescription
aDecodeModethe decode mode.

Returns: KErrNone if successful. KErrInUse if this method is used when encoding is active. KErrNotSupported if this method is not implemented.

SetPacketLossConcealment ( TBool )

TInt SetPacketLossConcealment(TBoolaPlc)[pure virtual]

Used to enable and disable the packet loss concealment capability.

This can be called when decoding is not active - anytime before started or after stopped.

ParameterDescription
aPlcETrue = plc enabled; EFalse = plc disabled

Returns: KErrNone if successful. KErrInUse if this method is used when encoding is active. KErrNotSupported if this method is not implemented.