#include <mmf/server/devsoundstandardcustominterfaces.h>
class MG711EncoderIntfc |
Public Member Enumerations | |
---|---|
enum | TEncodeMode { EEncALaw, EEncULaw } |
Public Member Functions | |
---|---|
pure virtual TInt | GetVadMode(TBool &) |
pure virtual TInt | SetEncoderMode(TEncodeMode) |
pure virtual TInt | SetVadMode(TBool) |
This class provides an interface to the G711 encoder CMMFHwDevice in order to provide additional configuration information.
Gets the current state of the voice activity detection (VAD) mode.
This method can be called at all times - while actively encoding or not.
Parameter | Description |
---|---|
aVadModeOn | On output ETrue=On, EFalse=Off |
Returns: KErrNone if successful. KErrNotSupported if this method is not implemented or VAD is not supported by the encoder.
TInt | SetEncoderMode | ( | TEncodeMode | aEncodeMode | ) | [pure virtual] |
Configures the encoder's encoding format.
This method can be called when decoding is not active - anytime before started or after stopped.
Parameter | Description |
---|---|
aEncodeMode | the encode mode. |
Returns: KErrNone if successful. KErrInUse if this method is used when encoding is active. KErrNotSupported if this method is not implemented.