MG711EncoderIntfc Class Reference

#include <mmf/server/devsoundstandardcustominterfaces.h>

Link against: tsu_mdf_omxvorbiscodecs.lib

class MG711EncoderIntfc
Public Member Enumerations
enumTEncodeMode { EEncALaw, EEncULaw }
Public Member Functions
pure virtual TInt GetVadMode(TBool &)
pure virtual TInt SetEncoderMode(TEncodeMode)
pure virtual TInt SetVadMode(TBool)

Detailed Description

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

Member Enumeration Documentation

Enum TEncodeMode

The encoder mode

EnumeratorValueDescription
EEncALaw

EncALaw

EEncULaw

EncULaw

Member Function Documentation

GetVadMode ( TBool & )

TInt GetVadMode(TBool &aVadModeOn)[pure virtual]

Gets the current state of the voice activity detection (VAD) mode.

This method can be called at all times - while actively encoding or not.

ParameterDescription
aVadModeOnOn output ETrue=On, EFalse=Off

Returns: KErrNone if successful. KErrNotSupported if this method is not implemented or VAD is not supported by the encoder.

SetEncoderMode ( TEncodeMode )

TInt SetEncoderMode(TEncodeModeaEncodeMode)[pure virtual]

Configures the encoder's encoding format.

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

ParameterDescription
aEncodeModethe encode mode.

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

SetVadMode ( TBool )

TInt SetVadMode(TBoolaVadModeOn)[pure virtual]

Controls voice activity detection (VAD) mode.

This method can be called at all times.

ParameterDescription
aVadModeOnETrue=On, EFalse=Off

Returns: KErrNone if successful, KErrNotSupported if this method is not implemented or not supported by the encoder