MIlbcEncoderIntfc Class Reference

#include <mmf/server/devsoundstandardcustominterfaces.h>

Link against: tsu_mdf_omxvorbiscodecs.lib

class MIlbcEncoderIntfc
Public Member Enumerations
enumTEncodeMode { E20msFrame, E30msFrame }
Public Member Functions
pure virtual TInt GetEncoderMode(TEncodeMode &)
pure virtual TInt GetVadMode(TBool &)
pure virtual TInt SetEncoderMode(TEncodeMode)
pure virtual TInt SetVadMode(TBool)

Detailed Description

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

Member Enumeration Documentation

Enum TEncodeMode

The Ibc encoder mode

EnumeratorValueDescription
E20msFrame

20msFrame

E30msFrame

30msFrame

Member Function Documentation

GetEncoderMode ( TEncodeMode & )

TInt GetEncoderMode(TEncodeMode &aEncodeMode)[pure virtual]

Gets the encoder's current encoding format.

This method is allowable when encoding is not active - anytime before started or after stopped.

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

GetVadMode ( TBool & )

TInt GetVadMode(TBool &aVadModeOn)[pure virtual]

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

This method is allowable 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 is allowable when encoding 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 is allowable at all times - while actively encoding or not.

ParameterDescription
aVadModeOnETrue=On, EFalse=Off

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