MMMFGsmConfig Class Reference

#include <mmf/server/devsoundstandardcustominterfaces.h>

Link against: tsu_mdf_omxvorbiscodecs.lib

class MMMFGsmConfig
Public Member Enumerations
enumTMMFGsmConversionFormat { ENone, EALaw8bit, EULaw8bit, EAlawPCM }
Public Member Functions
pure virtual TInt ConversionFormat(TMMFGsmConversionFormat &)
pure virtual TInt SetConversionFormat(TMMFGsmConversionFormat)

Detailed Description

This class provides an interface to set and retrive the GSM conversion format.

Member Enumeration Documentation

Enum TMMFGsmConversionFormat

The GSM conversion format

EnumeratorValueDescription
ENone

no conversion specified

EALaw8bit

for use in Full rate (06.10) and half rate (GSM 06.20 Half Rate (HR)) Vocoder

EULaw8bit

for use in Full rate (06.10) and half rate (GSM 06.20 Half Rate (HR)) Vocoder

EAlawPCM

for use in GSM 06.60 Enhanced Full Rate (EFR) Vocoder.

Member Function Documentation

ConversionFormat ( TMMFGsmConversionFormat & )

TInt ConversionFormat(TMMFGsmConversionFormat &aConvFormat)const [pure virtual]

Provides the current conversion format. Can be called at any time.

ParameterDescription
aConvFormat- after the call contains the current format. For encoding behaviour, format will be the input format and for decoding behaviour format will be the output format.

Returns: KErrNone if value returned successfully, KErrUnknown if value has not been successfully configured using SetConversionFormat() at least once for the current instance of the interface and there is no default value. KErrGeneral for all other error scenario.

SetConversionFormat ( TMMFGsmConversionFormat )

TInt SetConversionFormat(TMMFGsmConversionFormataConvFormat)[pure virtual]

Set the conversion format using the TMMFGsmConversionFormat enum. This conversion must be set before the coder/decoder is started.

ParameterDescription
aConvFormat- format desired. For encoding behaviour, format will be the input format and for decoding behaviour format will be the output format.

Returns: KErrNone - Format change supported, KErrNotSupported - Format change not supported, KErrInUse - Format change attempted whilst decoding.