CWmaDecoderIntfc Class Reference

class CWmaDecoderIntfc : public CBase

Interface for sending configuration info to WMA 10 Pro decoder. This abstract class just provides the static NewL function for the creation of the proxy. Also, it defines the APIs to be implemented by the proxy and the real custom interface implementation.

WmaDecoderIntfc.lib
Since
S60 3.2

Inherits from

Public Member Functions
IMPORT_C TIntApplyConfig()
IMPORT_C voidDisableTool(TTool)
IMPORT_C voidEnableTool(TTool)
IMPORT_C TIntGetAvgBytesPerSec(TUint &)
IMPORT_C TIntGetBitsPerSampleIn(TUint &)
IMPORT_C TIntGetBlockAlign(TUint &)
IMPORT_C TIntGetChannelMaskIn(TUint &)
IMPORT_C TIntGetControllableTools(RArray< TTool > &)
IMPORT_C TIntGetEncodeOptions(TUint &)
IMPORT_C TIntGetEncodeOptions1(TUint &)
IMPORT_C TIntGetEncodeOptions2(TUint &)
IMPORT_C TIntGetFormat(TFormat &)
IMPORT_C TIntGetNumOfChannelsIn(TUint &)
IMPORT_C TIntGetSamplesPerSec(TUint &)
IMPORT_C TIntGetSupportedFormats(RArray< TFormat > &)
IMPORT_C TIntGetSupportedMaxBitrate(TUint &)
IMPORT_C TIntGetSupportedMaxChannelsIn(TUint &)
IMPORT_C TIntGetSupportedMaxSampleRate(TUint &)
IMPORT_C TIntGetSupportedTools(RArray< TTool > &)
IMPORT_C TIntGetTool(TTool, TBool &)
IMPORT_C CWmaDecoderIntfc *NewL(CMMFDevSound &)
IMPORT_C CWmaDecoderIntfc *NewL(CMdaAudioInputStream &)
IMPORT_C CWmaDecoderIntfc *NewL(CMdaAudioOutputStream &)
IMPORT_C voidSetAvgBytesPerSec(TUint)
IMPORT_C voidSetBitsPerSampleIn(TUint)
IMPORT_C voidSetBlockAlign(TUint)
IMPORT_C voidSetChannelMaskIn(TUint)
IMPORT_C voidSetEncodeOptions(TUint)
IMPORT_C voidSetEncodeOptions1(TUint)
IMPORT_C voidSetEncodeOptions2(TUint)
IMPORT_C voidSetFormat(TFormat)
IMPORT_C voidSetNumChannelsIn(TUint)
IMPORT_C voidSetSamplesPerSec(TUint)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumTFormat {
EWmaVoice = 10, EWmaV1 = 352, EWma = 353, EWmaV2 = 353, EWmaPro = 354, EWmaLossless = 355
}
enumTTool { EToolOutput32Bit = 1, EDownMixToStereo = 2, ELostDataConcealment = 3 }

Member Functions Documentation

ApplyConfig()

IMPORT_C TIntApplyConfig()[pure virtual]
Commits configuration settings to the decoder.
Since
S60 3.2

DisableTool(TTool)

IMPORT_C voidDisableTool(TToolaTool)[pure virtual]
Disables the tool specified.
Since
S60 3.2

Parameters

TTool aTool

EnableTool(TTool)

IMPORT_C voidEnableTool(TToolaTool)[pure virtual]
Enables the tool specified.
Since
S60 3.2

Parameters

TTool aTool

GetAvgBytesPerSec(TUint &)

IMPORT_C TIntGetAvgBytesPerSec(TUint &aAvgBytesPerSec)[pure virtual]
Returns the configuration state of average bytes per second.
Since
S60 3.2

Parameters

TUint & aAvgBytesPerSec

GetBitsPerSampleIn(TUint &)

IMPORT_C TIntGetBitsPerSampleIn(TUint &aBitsPerSample)[pure virtual]
Returns the configuration state of number of bits per sample.
Since
S60 3.2

Parameters

TUint & aBitsPerSample

GetBlockAlign(TUint &)

IMPORT_C TIntGetBlockAlign(TUint &aBlockAlign)[pure virtual]
Returns the configuration state of block alignment.
Since
S60 3.2

Parameters

TUint & aBlockAlign

GetChannelMaskIn(TUint &)

IMPORT_C TIntGetChannelMaskIn(TUint &aChannelMask)[pure virtual]
Returns the configuration state of the input channel mask.
Since
S60 3.2

Parameters

TUint & aChannelMask

GetControllableTools(RArray< TTool > &)

IMPORT_C TIntGetControllableTools(RArray< TTool > &aControllableTools)[pure virtual]
Returns a list of the tools that are controllable through this interface.
Since
S60 3.2

Parameters

RArray< TTool > & aControllableTools

GetEncodeOptions(TUint &)

IMPORT_C TIntGetEncodeOptions(TUint &aEncodeOpts)[pure virtual]
Returns the configuration state of the encode options.
Since
S60 3.2

Parameters

TUint & aEncodeOpts

GetEncodeOptions1(TUint &)

IMPORT_C TIntGetEncodeOptions1(TUint &aEncodeOpts1)[pure virtual]
Returns the configuration state of the advanced encode options.
Since
S60 3.2

Parameters

TUint & aEncodeOpts1

GetEncodeOptions2(TUint &)

IMPORT_C TIntGetEncodeOptions2(TUint &aEncodeOpts2)[pure virtual]
Returns the configuration state of the advanced encode options.
Since
S60 3.2

Parameters

TUint & aEncodeOpts2

GetFormat(TFormat &)

IMPORT_C TIntGetFormat(TFormat &aFormat)[pure virtual]
Returns the configuration state of audio format.
Since
S60 3.2

Parameters

TFormat & aFormat

GetNumOfChannelsIn(TUint &)

IMPORT_C TIntGetNumOfChannelsIn(TUint &aNumOfChannels)[pure virtual]
Returns the configuration state of the number of channels.
Since
S60 3.2

Parameters

TUint & aNumOfChannels

GetSamplesPerSec(TUint &)

IMPORT_C TIntGetSamplesPerSec(TUint &aSamplesPerSec)[pure virtual]
Returns the configuration state of the sample rate.
Since
S60 3.2

Parameters

TUint & aSamplesPerSec

GetSupportedFormats(RArray< TFormat > &)

IMPORT_C TIntGetSupportedFormats(RArray< TFormat > &aSupportedFormats)[pure virtual]
Returns a list of formats supported by the decoder.
Since
S60 3.2

Parameters

RArray< TFormat > & aSupportedFormats

GetSupportedMaxBitrate(TUint &)

IMPORT_C TIntGetSupportedMaxBitrate(TUint &aSupportedMaxBitrate)[pure virtual]
Returns the maximum bit rate supported by the decoder.
Since
S60 3.2

Parameters

TUint & aSupportedMaxBitrate

GetSupportedMaxChannelsIn(TUint &)

IMPORT_C TIntGetSupportedMaxChannelsIn(TUint &aSupportedMaxChannelsIn)[pure virtual]
Returns the maximum number of input channels supported by the decoder.
Since
S60 3.2

Parameters

TUint & aSupportedMaxChannelsIn

GetSupportedMaxSampleRate(TUint &)

IMPORT_C TIntGetSupportedMaxSampleRate(TUint &aSupportedMaxSampleRate)[pure virtual]
Returns the maximum sample rate supported by the decoder.
Since
S60 3.2

Parameters

TUint & aSupportedMaxSampleRate

GetSupportedTools(RArray< TTool > &)

IMPORT_C TIntGetSupportedTools(RArray< TTool > &aSupportedTools)[pure virtual]
Returns a list of tools supported by the decoder.
Since
S60 3.2

Parameters

RArray< TTool > & aSupportedTools

GetTool(TTool, TBool &)

IMPORT_C TIntGetTool(TToolaTool,
TBool &aEnabled
)[pure virtual]
Returns the state of the specified tool
Since
S60 3.2

Parameters

TTool aTool
TBool & aEnabled

NewL(CMMFDevSound &)

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

Creates the interface.

Parameters

CMMFDevSound & aDevSound

NewL(CMdaAudioInputStream &)

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

Creates the interface This function will always leave with KErrNotSuppored

Parameters

CMdaAudioInputStream & aUtility

NewL(CMdaAudioOutputStream &)

IMPORT_C CWmaDecoderIntfc *NewL(CMdaAudioOutputStream &aUtility)[static]

Creates the interface.

Parameters

CMdaAudioOutputStream & aUtility

SetAvgBytesPerSec(TUint)

IMPORT_C voidSetAvgBytesPerSec(TUintaAvgBytesPerSec)[pure virtual]
Configures the average number of bytes per second
Since
S60 3.2

Parameters

TUint aAvgBytesPerSec

SetBitsPerSampleIn(TUint)

IMPORT_C voidSetBitsPerSampleIn(TUintaBitsPerSample)[pure virtual]
Configures the number of bits per sample
Since
S60 3.2

Parameters

TUint aBitsPerSample- bits per sample.

SetBlockAlign(TUint)

IMPORT_C voidSetBlockAlign(TUintaBlockAlign)[pure virtual]
Configures the block align size in bytes
Since
S60 3.2

Parameters

TUint aBlockAlign

SetChannelMaskIn(TUint)

IMPORT_C voidSetChannelMaskIn(TUintaChannelMask)[pure virtual]
Configures the decoder for the channel data arrangement
Since
S60 3.2

Parameters

TUint aChannelMask

SetEncodeOptions(TUint)

IMPORT_C voidSetEncodeOptions(TUintaEncodeOptions)[pure virtual]
Configures information specific to the WMA decoder
Since
S60 3.2

Parameters

TUint aEncodeOptions

SetEncodeOptions1(TUint)

IMPORT_C voidSetEncodeOptions1(TUintaEncodeOpts1)[pure virtual]
Configures information specific to the WMA 10 Pro decoder
Since
S60 3.2

Parameters

TUint aEncodeOpts1

SetEncodeOptions2(TUint)

IMPORT_C voidSetEncodeOptions2(TUintaEncodeOpts2)[pure virtual]
Configures information specific to the WMA 10 Pro decoder
Since
S60 3.2

Parameters

TUint aEncodeOpts2

SetFormat(TFormat)

IMPORT_C voidSetFormat(TFormataFormat)[pure virtual]
Configures the compressed audio format
Since
S60 3.2

Parameters

TFormat aFormat- the audio format.

SetNumChannelsIn(TUint)

IMPORT_C voidSetNumChannelsIn(TUintaNumChannelsIn)[pure virtual]
Configures the number of audio channels
Since
S60 3.2

Parameters

TUint aNumChannelsIn

SetSamplesPerSec(TUint)

IMPORT_C voidSetSamplesPerSec(TUintaSamplesPerSec)[pure virtual]
Configures the sampling rate
Since
S60 3.2

Parameters

TUint aSamplesPerSec

Member Enumerations Documentation

Enum TFormat

Enumerators

EWmaVoice = 10
EWmaV1 = 352
EWma = 353
EWmaV2 = 353
EWmaPro = 354
EWmaLossless = 355

Enum TTool

Enumerators

EToolOutput32Bit = 1
EDownMixToStereo = 2
ELostDataConcealment = 3