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 TInt ApplyConfig ()
IMPORT_C void DisableTool ( TTool )
IMPORT_C void EnableTool ( TTool )
IMPORT_C TInt GetAvgBytesPerSec ( TUint &)
IMPORT_C TInt GetBitsPerSampleIn ( TUint &)
IMPORT_C TInt GetBlockAlign ( TUint &)
IMPORT_C TInt GetChannelMaskIn ( TUint &)
IMPORT_C TInt GetControllableTools ( RArray < TTool > &)
IMPORT_C TInt GetEncodeOptions ( TUint &)
IMPORT_C TInt GetEncodeOptions1 ( TUint &)
IMPORT_C TInt GetEncodeOptions2 ( TUint &)
IMPORT_C TInt GetFormat ( TFormat &)
IMPORT_C TInt GetNumOfChannelsIn ( TUint &)
IMPORT_C TInt GetSamplesPerSec ( TUint &)
IMPORT_C TInt GetSupportedFormats ( RArray < TFormat > &)
IMPORT_C TInt GetSupportedMaxBitrate ( TUint &)
IMPORT_C TInt GetSupportedMaxChannelsIn ( TUint &)
IMPORT_C TInt GetSupportedMaxSampleRate ( TUint &)
IMPORT_C TInt GetSupportedTools ( RArray < TTool > &)
IMPORT_C TInt GetTool ( TTool , TBool &)
IMPORT_C CWmaDecoderIntfc * NewL ( CMMFDevSound &)
IMPORT_C CWmaDecoderIntfc * NewL ( CMdaAudioInputStream &)
IMPORT_C CWmaDecoderIntfc * NewL ( CMdaAudioOutputStream &)
IMPORT_C void SetAvgBytesPerSec ( TUint )
IMPORT_C void SetBitsPerSampleIn ( TUint )
IMPORT_C void SetBlockAlign ( TUint )
IMPORT_C void SetChannelMaskIn ( TUint )
IMPORT_C void SetEncodeOptions ( TUint )
IMPORT_C void SetEncodeOptions1 ( TUint )
IMPORT_C void SetEncodeOptions2 ( TUint )
IMPORT_C void SetFormat ( TFormat )
IMPORT_C void SetNumChannelsIn ( TUint )
IMPORT_C void SetSamplesPerSec ( 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
enum TFormat {
EWmaVoice  = 10, EWmaV1  = 352, EWma  = 353, EWmaV2  = 353, EWmaPro  = 354, EWmaLossless  = 355
}
enum TTool { EToolOutput32Bit  = 1, EDownMixToStereo  = 2, ELostDataConcealment  = 3 }

Member Functions Documentation

ApplyConfig()

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

DisableTool(TTool)

IMPORT_C void DisableTool ( TTool aTool ) [pure virtual]
Disables the tool specified.
Since
S60 3.2

Parameters

TTool aTool

EnableTool(TTool)

IMPORT_C void EnableTool ( TTool aTool ) [pure virtual]
Enables the tool specified.
Since
S60 3.2

Parameters

TTool aTool

GetAvgBytesPerSec(TUint &)

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

Parameters

TUint & aAvgBytesPerSec

GetBitsPerSampleIn(TUint &)

IMPORT_C TInt GetBitsPerSampleIn ( 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 TInt GetBlockAlign ( TUint & aBlockAlign ) [pure virtual]
Returns the configuration state of block alignment.
Since
S60 3.2

Parameters

TUint & aBlockAlign

GetChannelMaskIn(TUint &)

IMPORT_C TInt GetChannelMaskIn ( 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 TInt GetControllableTools ( 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 TInt GetEncodeOptions ( TUint & aEncodeOpts ) [pure virtual]
Returns the configuration state of the encode options.
Since
S60 3.2

Parameters

TUint & aEncodeOpts

GetEncodeOptions1(TUint &)

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

Parameters

TUint & aEncodeOpts1

GetEncodeOptions2(TUint &)

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

Parameters

TUint & aEncodeOpts2

GetFormat(TFormat &)

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

Parameters

TFormat & aFormat

GetNumOfChannelsIn(TUint &)

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

Parameters

TUint & aNumOfChannels

GetSamplesPerSec(TUint &)

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

Parameters

TUint & aSamplesPerSec

GetSupportedFormats(RArray< TFormat > &)

IMPORT_C TInt GetSupportedFormats ( 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 TInt GetSupportedMaxBitrate ( TUint & aSupportedMaxBitrate ) [pure virtual]
Returns the maximum bit rate supported by the decoder.
Since
S60 3.2

Parameters

TUint & aSupportedMaxBitrate

GetSupportedMaxChannelsIn(TUint &)

IMPORT_C TInt GetSupportedMaxChannelsIn ( 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 TInt GetSupportedMaxSampleRate ( 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 TInt GetSupportedTools ( 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 TInt GetTool ( TTool aTool,
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 void SetAvgBytesPerSec ( TUint aAvgBytesPerSec ) [pure virtual]
Configures the average number of bytes per second
Since
S60 3.2

Parameters

TUint aAvgBytesPerSec

SetBitsPerSampleIn(TUint)

IMPORT_C void SetBitsPerSampleIn ( TUint aBitsPerSample ) [pure virtual]
Configures the number of bits per sample
Since
S60 3.2

Parameters

TUint aBitsPerSample - bits per sample.

SetBlockAlign(TUint)

IMPORT_C void SetBlockAlign ( TUint aBlockAlign ) [pure virtual]
Configures the block align size in bytes
Since
S60 3.2

Parameters

TUint aBlockAlign

SetChannelMaskIn(TUint)

IMPORT_C void SetChannelMaskIn ( TUint aChannelMask ) [pure virtual]
Configures the decoder for the channel data arrangement
Since
S60 3.2

Parameters

TUint aChannelMask

SetEncodeOptions(TUint)

IMPORT_C void SetEncodeOptions ( TUint aEncodeOptions ) [pure virtual]
Configures information specific to the WMA decoder
Since
S60 3.2

Parameters

TUint aEncodeOptions

SetEncodeOptions1(TUint)

IMPORT_C void SetEncodeOptions1 ( TUint aEncodeOpts1 ) [pure virtual]
Configures information specific to the WMA 10 Pro decoder
Since
S60 3.2

Parameters

TUint aEncodeOpts1

SetEncodeOptions2(TUint)

IMPORT_C void SetEncodeOptions2 ( TUint aEncodeOpts2 ) [pure virtual]
Configures information specific to the WMA 10 Pro decoder
Since
S60 3.2

Parameters

TUint aEncodeOpts2

SetFormat(TFormat)

IMPORT_C void SetFormat ( TFormat aFormat ) [pure virtual]
Configures the compressed audio format
Since
S60 3.2

Parameters

TFormat aFormat - the audio format.

SetNumChannelsIn(TUint)

IMPORT_C void SetNumChannelsIn ( TUint aNumChannelsIn ) [pure virtual]
Configures the number of audio channels
Since
S60 3.2

Parameters

TUint aNumChannelsIn

SetSamplesPerSec(TUint)

IMPORT_C void SetSamplesPerSec ( TUint aSamplesPerSec ) [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