CSbcEncoderIntfc Class Reference

class CSbcEncoderIntfc : public CBase

Interface for configuring the SBC encoder. Used to configure the SBC encoder operating modes. This abstract class just provides the static NewL function for the creation of the proxy, and also defines the custom interface to be implemented by the proxy and the real custom interface implementation.

SbcEncoderIntfc.lib
Since
S60 3.0

Inherits from

Member Functions Documentation

ApplyConfig()

IMPORT_C TIntApplyConfig()[pure virtual]
Applies configuration to the encoder.
Since
S60 3.0

GetAllocationMethod(TSbcAllocationMethod &)

IMPORT_C TIntGetAllocationMethod(TSbcAllocationMethod &aAllocationMethod)[pure virtual]
Retrieves the current encode allocation method.
Since
S60 3.0

Parameters

TSbcAllocationMethod & aAllocationMethodreturns current encode allocation method.

GetBitpoolSize(TUint &)

IMPORT_C TIntGetBitpoolSize(TUint &aBitpoolSize)[pure virtual]
Retrieves the current encode bitpool size.
Since
S60 3.0

Parameters

TUint & aBitpoolSizereturns current encode bitpool size.

GetChannelMode(TSbcChannelMode &)

IMPORT_C TIntGetChannelMode(TSbcChannelMode &aChannelMode)[pure virtual]
Retrieves the current encode channel mode.
Since
S60 3.0

Parameters

TSbcChannelMode & aChannelModereturns current encode channel mode.

GetNumOfBlocks(TUint &)

IMPORT_C TIntGetNumOfBlocks(TUint &aNumOfBlocks)[pure virtual]
Retrieves the current encode number of blocks.
Since
S60 3.0

Parameters

TUint & aNumOfBlocksreturns current encode number of blocks.

GetNumOfSubbands(TUint &)

IMPORT_C TIntGetNumOfSubbands(TUint &aNumOfSubbands)[pure virtual]
Retrieves the current encode number of subbands.
Since
S60 3.0

Parameters

TUint & aNumOfSubbandsreturns current encode number of subbands.

GetSamplingFrequency(TUint &)

IMPORT_C TIntGetSamplingFrequency(TUint &aSamplingFrequency)[pure virtual]
Retrieves the current encode sampling frequency.
Since
S60 3.0

Parameters

TUint & aSamplingFrequencyreturns current encode sampling frequency.

GetSupportedAllocationMethods(RArray< TSbcAllocationMethod > &)

IMPORT_C TIntGetSupportedAllocationMethods(RArray< TSbcAllocationMethod > &aSupportedAllocationMethods)[pure virtual]
Retrieves the allocation methods supported by the encoder.
Since
S60 3.0

Parameters

RArray< TSbcAllocationMethod > & aSupportedAllocationMethodsarray returning the supported allocation methods.

GetSupportedBitpoolRange(TUint &, TUint &)

IMPORT_C TIntGetSupportedBitpoolRange(TUint &aMinSupportedBitpoolSize,
TUint &aMaxSupportedBitpoolSize
)[pure virtual]
Retrieves the supported bitpool range by the encoder.
Since
S60 3.0

Parameters

TUint & aMinSupportedBitpoolSizereturning the min bitpool size.
TUint & aMaxSupportedBitpoolSizereturning the max bitpool size.

GetSupportedChannelModes(RArray< TSbcChannelMode > &)

IMPORT_C TIntGetSupportedChannelModes(RArray< TSbcChannelMode > &aSupportedChannelModes)[pure virtual]
Retrieves the channel configurations supported by the encoder.
Since
S60 3.0

Parameters

RArray< TSbcChannelMode > & aSupportedChannelModesarray returning the supported frequencies.

GetSupportedNumOfBlocks(RArray< TUint > &)

IMPORT_C TIntGetSupportedNumOfBlocks(RArray< TUint > &aSupportedNumOfBlocks)[pure virtual]
Retrieves array of supported block numbers by the encoder.
Since
S60 3.0

Parameters

RArray< TUint > & aSupportedNumOfBlocks

GetSupportedNumOfSubbands(RArray< TUint > &)

IMPORT_C TIntGetSupportedNumOfSubbands(RArray< TUint > &aSupportedNumOfSubbands)[pure virtual]
Retrieves the number of subbands supported by the encoder.
Since
S60 3.0

Parameters

RArray< TUint > & aSupportedNumOfSubbandsarray returning the supported number of subbands.

GetSupportedSamplingFrequencies(RArray< TUint > &)

IMPORT_C TIntGetSupportedSamplingFrequencies(RArray< TUint > &aSupportedSamplingFrequencies)[pure virtual]
Retrieves the sampling frequencies supported by the encoder.
Since
S60 3.0

Parameters

RArray< TUint > & aSupportedSamplingFrequenciesarray returning the supported frequencies.

NewL(CMMFDevSound &)

IMPORT_C CSbcEncoderIntfc *NewL(CMMFDevSound &aDevSound)[static]

Creates the interface.

CSbcEncoderIntfc::NewL

Creates the custom interface. Calls the custom interface method on the devsound passed in. Devsound will return the handle to the custom interface proxy.

(other items were commented in a header).

Parameters

CMMFDevSound & aDevSound

NewL(CMdaAudioInputStream &)

IMPORT_C CSbcEncoderIntfc *NewL(CMdaAudioInputStream &aUtility)[static]

Creates the interface.

CSbcEncoderIntfc::NewL

Creates the custom interface. Calls the custom interface method on the CMdaAudioInputStream passed in. The CMdaAudioInputStream utility will return the handle to the custom interface proxy.

(other items were commented in a header).

Parameters

CMdaAudioInputStream & aUtility

SetAllocationMethod(TSbcAllocationMethod)

IMPORT_C voidSetAllocationMethod(TSbcAllocationMethodaAllocationMethod)[pure virtual]
Sets the allocation method for encoding.
Since
S60 3.0

Parameters

TSbcAllocationMethod aAllocationMethodrequested encoding allocation method.

SetBitpoolSize(TUint)

IMPORT_C voidSetBitpoolSize(TUintaBitpoolSize)[pure virtual]
Sets the bitpool size for encoding.
Since
S60 3.0

Parameters

TUint aBitpoolSizerequested encoding number of blocks.

SetChannelMode(TSbcChannelMode)

IMPORT_C voidSetChannelMode(TSbcChannelModeaChannelMode)[pure virtual]
Sets the channel mode for encoding.
Since
S60 3.0

Parameters

TSbcChannelMode aChannelModerequested encoding channel mode.

SetNumOfBlocks(TUint)

IMPORT_C voidSetNumOfBlocks(TUintaNumOfBlocks)[pure virtual]
Sets the number of blocks for encoding.
Since
S60 3.0

Parameters

TUint aNumOfBlocksrequested encoding number of blocks.

SetNumOfSubbands(TUint)

IMPORT_C voidSetNumOfSubbands(TUintaNumOfSubbands)[pure virtual]
Sets the number of subbands for encoding.
Since
S60 3.0

Parameters

TUint aNumOfSubbands

SetSamplingFrequency(TUint)

IMPORT_C voidSetSamplingFrequency(TUintaSamplingFrequency)[pure virtual]
Sets the sampling frequency for encoding.
Since
S60 3.0

Parameters

TUint aSamplingFrequencyrequested encoding sampling frequency.

Member Enumerations Documentation

Enum TSbcAllocationMethod

Enumerators

ESbcAllocationSNR
ESbcAllocationLoudness

Enum TSbcChannelMode

Enumerators

ESbcChannelMono
ESbcChannelDual
ESbcChannelStereo
ESbcChannelJointStereo