MG711EncoderIntfc Class Reference

class MG711EncoderIntfc

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

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

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

Parameters

TBool & aVadModeOnOn output ETrue=On, EFalse=Off

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.

Parameters

TEncodeMode aEncodeModethe encode mode.

SetVadMode(TBool)

TInt SetVadMode(TBoolaVadModeOn)[pure virtual]

Controls voice activity detection (VAD) mode.

This method can be called at all times.

Parameters

TBool aVadModeOnETrue=On, EFalse=Off

Member Enumerations Documentation

Enum TEncodeMode

The encoder mode

Enumerators

EEncALaw

EncALaw

EEncULaw

EncULaw