#include <mmf/server/devsoundstandardcustominterfaces.h>
class MG711DecoderIntfc |
Public Member Enumerations | |
---|---|
enum | TDecodeMode { EDecALaw, EDecULaw } |
Public Member Functions | |
---|---|
pure virtual TInt | GetComfortNoiseGeneration(TBool &) |
pure virtual TInt | GetDecoderMode(TDecodeMode &) |
pure virtual TInt | GetPacketLossConcealment(TBool &) |
pure virtual TInt | SetComfortNoiseGeneration(TBool) |
pure virtual TInt | SetDecoderMode(TDecodeMode) |
pure virtual TInt | SetPacketLossConcealment(TBool) |
This class provides an interface to the G711 decoder CMMFHwDevice in order to provide additional configuration information.
Used to find out if comfort noise generation is enabled or not.
This method can be called when decoding is not active - anytime before started or after stopped.
Parameter | Description |
---|---|
aCng | ETrue = Comfort Noise Generation enabled; EFalse = Comfort Noise Generation disabled |
Returns: KErrNone if successful. KErrInUse if this method is used when encoding is active. KErrNotSupported if this method is not implemented.
TInt | GetDecoderMode | ( | TDecodeMode & | aDecodeMode | ) | [pure virtual] |
Queries the decoder of the encoded data format that has been active.
This method can be called at all times.
Parameter | Description |
---|---|
aDecodeMode | the decode mode. |
Returns: KErrNone if successful. KErrInUse if this method is used when encoding is active. KErrNotSupported if this method is not implemented.
Used to find out if packet loss concealment capability is enabled or not.
This method can be called when decoding is not active - anytime before started or after stopped.
Parameter | Description |
---|---|
aPlc | ETrue = packet loss concealment enabled; EFalse = packet loss concealment disabled |
Returns: KErrNone if successful. KErrInUse if this method is used when encoding is active. KErrNotSupported if this method is not implemented.
Used to enable and disable the comfort noise generation capability.
This method can be called when decoding is not active - anytime before started or after stopped.
Parameter | Description |
---|---|
aCng | ETrue = Comfort Noise Generation enabled; EFalse = Comfort Noise Generation disabled |
Returns: KErrNone if successful. KErrInUse if this method is used when encoding is active. KErrNotSupported if this method is not implemented.
TInt | SetDecoderMode | ( | TDecodeMode | aDecodeMode | ) | [pure virtual] |
Informs the decoder of the encoded data format that will be sent to it.
This method can be called when decoding is not active - anytime before started or after stopped.
Parameter | Description |
---|---|
aDecodeMode | the decode mode. |
Returns: KErrNone if successful. KErrInUse if this method is used when encoding is active. KErrNotSupported if this method is not implemented.
Used to enable and disable the packet loss concealment capability.
This can be called when decoding is not active - anytime before started or after stopped.
Parameter | Description |
---|---|
aPlc | ETrue = plc enabled; EFalse = plc disabled |
Returns: KErrNone if successful. KErrInUse if this method is used when encoding is active. KErrNotSupported if this method is not implemented.