RMMFAudioControllerCustomCommands Class Reference

class RMMFAudioControllerCustomCommands : public RMMFCustomCommandsBase

Client class to access functionality specific to an audio controller.

The class uses the custom command function of the controller plugin, and removes the necessity for the client to formulate the custom commands.

Since
7.0s

Inherits from

Public Member Functions
RMMFAudioControllerCustomCommands(RMMFController &)
IMPORT_C TIntGetSinkBitRate(TUint &)
IMPORT_C TIntGetSinkDataType(TFourCC &)
IMPORT_C TIntGetSinkFormat(TUid &)
IMPORT_C TIntGetSinkNumChannels(TUint &)
IMPORT_C TIntGetSinkSampleRate(TUint &)
IMPORT_C TIntGetSourceBitRate(TUint &)
IMPORT_C TIntGetSourceDataType(TFourCC &)
IMPORT_C TIntGetSourceFormat(TUid &)
IMPORT_C TIntGetSourceNumChannels(TUint &)
IMPORT_C TIntGetSourceSampleRate(TUint &)
IMPORT_C voidGetSupportedSinkBitRatesL(RArray< TUint > &)
IMPORT_C voidGetSupportedSinkDataTypesL(RArray< TFourCC > &)
IMPORT_C voidGetSupportedSinkNumChannelsL(RArray< TUint > &)
IMPORT_C voidGetSupportedSinkSampleRatesL(RArray< TUint > &)
IMPORT_C voidGetSupportedSourceBitRatesL(RArray< TUint > &)
IMPORT_C voidGetSupportedSourceDataTypesL(RArray< TFourCC > &)
IMPORT_C voidGetSupportedSourceNumChannelsL(RArray< TUint > &)
IMPORT_C voidGetSupportedSourceSampleRatesL(RArray< TUint > &)
IMPORT_C TIntSetCodec(TFourCC, TFourCC)
IMPORT_C TIntSetSinkBitRate(TUint)
IMPORT_C TIntSetSinkDataType(TFourCC)
IMPORT_C TIntSetSinkFormat(TUid)
IMPORT_C TIntSetSinkNumChannels(TUint)
IMPORT_C TIntSetSinkSampleRate(TUint)
IMPORT_C TIntSetSourceBitRate(TUint)
IMPORT_C TIntSetSourceDataType(TFourCC)
IMPORT_C TIntSetSourceFormat(TUid)
IMPORT_C TIntSetSourceNumChannels(TUint)
IMPORT_C TIntSetSourceSampleRate(TUint)
Private Member Functions
voidDoGetFourCCArrayL(RArray< TFourCC > &, TMMFAudioControllerMessages)
voidDoGetUintArrayL(RArray< TUint > &, TMMFAudioControllerMessages)
Inherited Functions
RMMFCustomCommandsBase::RMMFCustomCommandsBase(RMMFController &,TUid)
Inherited Attributes
RMMFCustomCommandsBase::iController
RMMFCustomCommandsBase::iDestinationPckg

Constructor & Destructor Documentation

RMMFAudioControllerCustomCommands(RMMFController &)

IMPORT_CRMMFAudioControllerCustomCommands(RMMFController &aController)

Constructor.

Since
7.0s

Parameters

RMMFController & aControllerThe client side controller object to be used by this custom command interface.

Member Functions Documentation

DoGetFourCCArrayL(RArray< TFourCC > &, TMMFAudioControllerMessages)

voidDoGetFourCCArrayL(RArray< TFourCC > &aArray,
TMMFAudioControllerMessagesaIpc
)const [private]

Parameters

RArray< TFourCC > & aArray
TMMFAudioControllerMessages aIpc

DoGetUintArrayL(RArray< TUint > &, TMMFAudioControllerMessages)

voidDoGetUintArrayL(RArray< TUint > &aArray,
TMMFAudioControllerMessagesaIpc
)const [private]

Parameters

RArray< TUint > & aArray
TMMFAudioControllerMessages aIpc

GetSinkBitRate(TUint &)

IMPORT_C TIntGetSinkBitRate(TUint &aRate)const

Gets the bit rate of the data sink in bits per second.

Since
7.0s

Parameters

TUint & aRateThe bit rate, in bits per second.

GetSinkDataType(TFourCC &)

IMPORT_C TIntGetSinkDataType(TFourCC &aDataType)const

Gets the fourCC code of the sink.

Since
7.0s

Parameters

TFourCC & aDataTypeThe fourCC code.

GetSinkFormat(TUid &)

IMPORT_C TIntGetSinkFormat(TUid &aFormat)const

Gets the format of the data sink.

The UID corresponds to the UID of the CMMFFormat-derived ECOM plugin being used.

Since
7.0s

Parameters

TUid & aFormatThe format plugin being used.

GetSinkNumChannels(TUint &)

IMPORT_C TIntGetSinkNumChannels(TUint &aNumChannels)const

Gets the number of channels in the data sink. For example, one channel for mono, two channels for stereo etc.

Since
7.0s

Parameters

TUint & aNumChannelsThe number of channels.

GetSinkSampleRate(TUint &)

IMPORT_C TIntGetSinkSampleRate(TUint &aRate)const

Gets the sample rate of the data sink in samples per second.

Since
7.0s

Parameters

TUint & aRateThe sample rate, in samples per second.

GetSourceBitRate(TUint &)

IMPORT_C TIntGetSourceBitRate(TUint &aRate)const

Gets the bit rate of the data source in bits per second.

Since
7.0s

Parameters

TUint & aRateThe bit rate, in bits per second.

GetSourceDataType(TFourCC &)

IMPORT_C TIntGetSourceDataType(TFourCC &aDataType)const

Get the fourCC code of the source.

Since
7.0s

Parameters

TFourCC & aDataTypeThe fourCC code.

GetSourceFormat(TUid &)

IMPORT_C TIntGetSourceFormat(TUid &aFormat)const

Gets the format of the data source.

The UID corresponds to the UID of the CMMFFormat-derived ECOM plugin being used.

Since
7.0s

Parameters

TUid & aFormatThe format plugin being used.

GetSourceNumChannels(TUint &)

IMPORT_C TIntGetSourceNumChannels(TUint &aNumChannels)const

Gets the number of channels in the data source. For example, one channel for mono, two channels for stereo etc.

Since
7.0s

Parameters

TUint & aNumChannelsThe number of channels.

GetSourceSampleRate(TUint &)

IMPORT_C TIntGetSourceSampleRate(TUint &aRate)const

Gets the sample rate of the data source in samples per second.

Since
7.0s

Parameters

TUint & aRateThe sample rate, in samples per second.

GetSupportedSinkBitRatesL(RArray< TUint > &)

IMPORT_C voidGetSupportedSinkBitRatesL(RArray< TUint > &aSupportedRates)const

Gets the list of bit rates supported by the data sink.

Warning: Existing objects in this array will be removed by this method.

Since
7.0s

Parameters

RArray< TUint > & aSupportedRatesThe supported rates.

GetSupportedSinkDataTypesL(RArray< TFourCC > &)

IMPORT_C voidGetSupportedSinkDataTypesL(RArray< TFourCC > &aSupportedDataTypes)const

Gets the list of fourCC codes supported by the data sink.

Warning: Existing objects in this array will be removed by this method.

Since
7.0s

Parameters

RArray< TFourCC > & aSupportedDataTypesThe supported data types.

GetSupportedSinkNumChannelsL(RArray< TUint > &)

IMPORT_C voidGetSupportedSinkNumChannelsL(RArray< TUint > &aSupportedChannels)const

Gets the list of channels supported by the data sink (ie mono, stereo etc).

Warning: Existing objects in this array will be removed by this method.

Since
7.0s

Parameters

RArray< TUint > & aSupportedChannelsThe supported channels.

GetSupportedSinkSampleRatesL(RArray< TUint > &)

IMPORT_C voidGetSupportedSinkSampleRatesL(RArray< TUint > &aSupportedRates)const

Gets the list of sample rates supported by the data sink.

Warning: Existing objects in this array will be removed by this method.

Since
7.0s

Parameters

RArray< TUint > & aSupportedRatesThe supported rates.

GetSupportedSourceBitRatesL(RArray< TUint > &)

IMPORT_C voidGetSupportedSourceBitRatesL(RArray< TUint > &aSupportedRates)const

Gets the list of bit rates supported by the data source.

Warning: Existing objects in this array will be removed by this function.

Since
7.0s

Parameters

RArray< TUint > & aSupportedRatesThe supported rates.

GetSupportedSourceDataTypesL(RArray< TFourCC > &)

IMPORT_C voidGetSupportedSourceDataTypesL(RArray< TFourCC > &aSupportedDataTypes)const

Gets the list of fourCC codes supported by the data source.

Warning: Existing objects in this array will be removed by this method.

Since
7.0s

Parameters

RArray< TFourCC > & aSupportedDataTypesThe supported data types.

GetSupportedSourceNumChannelsL(RArray< TUint > &)

IMPORT_C voidGetSupportedSourceNumChannelsL(RArray< TUint > &aSupportedChannels)const

Gets the list of channels supported by the data source (ie mono, stereo etc).

Warning: Existing objects in this array will be removed by this method.

Since
7.0s

Parameters

RArray< TUint > & aSupportedChannelsThe supported channels.

GetSupportedSourceSampleRatesL(RArray< TUint > &)

IMPORT_C voidGetSupportedSourceSampleRatesL(RArray< TUint > &aSupportedRates)const

Gets the list of sample rates supported by the data source.

Warning: Existing objects in this array will be removed by this function.

Since
7.0s

Parameters

RArray< TUint > & aSupportedRatesThe supported rates.

SetCodec(TFourCC, TFourCC)

IMPORT_C TIntSetCodec(TFourCCaSourceDataType,
TFourCCaSinkDataType
)const

Sets the codec to be used. Useful when recording data.

Since
7.0s

Parameters

TFourCC aSourceDataTypeThe data type of the source of the codec.
TFourCC aSinkDataTypeThe data type of the sink of the codec.

SetSinkBitRate(TUint)

IMPORT_C TIntSetSinkBitRate(TUintaRate)const

Set the bit rate of the data sink in bits per second.

Since
7.0s

Parameters

TUint aRateThe bit rate, in bits per second.

SetSinkDataType(TFourCC)

IMPORT_C TIntSetSinkDataType(TFourCCaDataType)const

Set the fourCC code of the sink.

Since
7.0s

Parameters

TFourCC aDataTypeThe fourCC code.

SetSinkFormat(TUid)

IMPORT_C TIntSetSinkFormat(TUidaFormatUid)const

Sets the format of the data sink.

The UID corresponds to the UID of the CMMFFormat-derived ECOM plugin to be used.

Since
7.0s

Parameters

TUid aFormatUidThe format plugin to be used.

SetSinkNumChannels(TUint)

IMPORT_C TIntSetSinkNumChannels(TUintaNumChannels)const

Sets the number of channels in the data sink. For example, one channel for mono, two channels for stereo etc.

Since
7.0s

Parameters

TUint aNumChannelsThe number of channels.

SetSinkSampleRate(TUint)

IMPORT_C TIntSetSinkSampleRate(TUintaSampleRate)const

Sets the sample rate of the data sink in samples per second.

Since
7.0s

Parameters

TUint aSampleRateThe sample rate, in samples per second.

SetSourceBitRate(TUint)

IMPORT_C TIntSetSourceBitRate(TUintaRate)const

Sets the bit rate of the data source in bits per second.

Since
7.0s

Parameters

TUint aRateThe bit rate, in bits per second.

SetSourceDataType(TFourCC)

IMPORT_C TIntSetSourceDataType(TFourCCaDataType)const

Sets the fourCC code of the source.

Since
7.0s

Parameters

TFourCC aDataTypeThe fourCC code.

SetSourceFormat(TUid)

IMPORT_C TIntSetSourceFormat(TUidaFormatUid)const

Sets the format of the data source.

The UID corresponds to the UID of the CMMFFormat-derived ECOM plugin to be used.

Since
7.0s

Parameters

TUid aFormatUidThe format plugin to be used.

SetSourceNumChannels(TUint)

IMPORT_C TIntSetSourceNumChannels(TUintaNumChannels)const

Sets the number of channels in the data source. For example, one channel for mono, two channels for stereo etc.

Since
7.0s

Parameters

TUint aNumChannelsThe number of channels.

SetSourceSampleRate(TUint)

IMPORT_C TIntSetSourceSampleRate(TUintaSampleRate)const

Sets the sample rate of the data source in samples per second.

Since
7.0s

Parameters

TUint aSampleRateThe sample rate, in samples per second.