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.
Inherits from
-
RMMFAudioControllerCustomCommands
Constructor & Destructor Documentation
RMMFAudioControllerCustomCommands(RMMFController &)
IMPORT_C
|
RMMFAudioControllerCustomCommands
|
(
|
RMMFController
&
|
aController
|
)
|
|
Parameters
RMMFController
& aController
|
The client side controller object to be used by this custom command interface.
|
Member Functions Documentation
DoGetFourCCArrayL(RArray< TFourCC > &, TMMFAudioControllerMessages)
DoGetUintArrayL(RArray< TUint > &, TMMFAudioControllerMessages)
GetSinkBitRate(TUint &)
IMPORT_C
TInt
|
GetSinkBitRate
|
(
|
TUint
&
|
aRate
|
)
|
const
|
Gets the bit rate of the data sink in bits per second.
Parameters
TUint
& aRate
|
The bit rate, in bits per second.
|
GetSinkDataType(TFourCC &)
IMPORT_C
TInt
|
GetSinkDataType
|
(
|
TFourCC
&
|
aDataType
|
)
|
const
|
Gets the fourCC code of the sink.
Parameters
TFourCC
& aDataType
|
The fourCC code.
|
GetSinkFormat(TUid &)
IMPORT_C
TInt
|
GetSinkFormat
|
(
|
TUid
&
|
aFormat
|
)
|
const
|
Gets the format of the data sink.
The UID corresponds to the UID of the CMMFFormat-derived ECOM plugin being used.
Parameters
TUid
& aFormat
|
The format plugin being used.
|
GetSinkNumChannels(TUint &)
IMPORT_C
TInt
|
GetSinkNumChannels
|
(
|
TUint
&
|
aNumChannels
|
)
|
const
|
Gets the number of channels in the data sink. For example, one channel for mono, two channels for stereo etc.
Parameters
TUint
& aNumChannels
|
The number of channels.
|
GetSinkSampleRate(TUint &)
IMPORT_C
TInt
|
GetSinkSampleRate
|
(
|
TUint
&
|
aRate
|
)
|
const
|
Gets the sample rate of the data sink in samples per second.
Parameters
TUint
& aRate
|
The sample rate, in samples per second.
|
GetSourceBitRate(TUint &)
IMPORT_C
TInt
|
GetSourceBitRate
|
(
|
TUint
&
|
aRate
|
)
|
const
|
Gets the bit rate of the data source in bits per second.
Parameters
TUint
& aRate
|
The bit rate, in bits per second.
|
GetSourceDataType(TFourCC &)
IMPORT_C
TInt
|
GetSourceDataType
|
(
|
TFourCC
&
|
aDataType
|
)
|
const
|
Get the fourCC code of the source.
Parameters
TFourCC
& aDataType
|
The fourCC code.
|
GetSourceFormat(TUid &)
IMPORT_C
TInt
|
GetSourceFormat
|
(
|
TUid
&
|
aFormat
|
)
|
const
|
Gets the format of the data source.
The UID corresponds to the UID of the CMMFFormat-derived ECOM plugin being used.
Parameters
TUid
& aFormat
|
The format plugin being used.
|
GetSourceNumChannels(TUint &)
IMPORT_C
TInt
|
GetSourceNumChannels
|
(
|
TUint
&
|
aNumChannels
|
)
|
const
|
Gets the number of channels in the data source. For example, one channel for mono, two channels for stereo etc.
Parameters
TUint
& aNumChannels
|
The number of channels.
|
GetSourceSampleRate(TUint &)
IMPORT_C
TInt
|
GetSourceSampleRate
|
(
|
TUint
&
|
aRate
|
)
|
const
|
Gets the sample rate of the data source in samples per second.
Parameters
TUint
& aRate
|
The sample rate, in samples per second.
|
GetSupportedSinkBitRatesL(RArray< TUint > &)
IMPORT_C void
|
GetSupportedSinkBitRatesL
|
(
|
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.
Parameters
RArray
<
TUint
> & aSupportedRates
|
The supported rates.
|
GetSupportedSinkDataTypesL(RArray< TFourCC > &)
IMPORT_C void
|
GetSupportedSinkDataTypesL
|
(
|
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.
Parameters
RArray
<
TFourCC
> & aSupportedDataTypes
|
The supported data types.
|
GetSupportedSinkNumChannelsL(RArray< TUint > &)
IMPORT_C void
|
GetSupportedSinkNumChannelsL
|
(
|
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.
Parameters
RArray
<
TUint
> & aSupportedChannels
|
The supported channels.
|
GetSupportedSinkSampleRatesL(RArray< TUint > &)
IMPORT_C void
|
GetSupportedSinkSampleRatesL
|
(
|
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.
Parameters
RArray
<
TUint
> & aSupportedRates
|
The supported rates.
|
GetSupportedSourceBitRatesL(RArray< TUint > &)
IMPORT_C void
|
GetSupportedSourceBitRatesL
|
(
|
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.
Parameters
RArray
<
TUint
> & aSupportedRates
|
The supported rates.
|
GetSupportedSourceDataTypesL(RArray< TFourCC > &)
IMPORT_C void
|
GetSupportedSourceDataTypesL
|
(
|
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.
Parameters
RArray
<
TFourCC
> & aSupportedDataTypes
|
The supported data types.
|
GetSupportedSourceNumChannelsL(RArray< TUint > &)
IMPORT_C void
|
GetSupportedSourceNumChannelsL
|
(
|
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.
Parameters
RArray
<
TUint
> & aSupportedChannels
|
The supported channels.
|
GetSupportedSourceSampleRatesL(RArray< TUint > &)
IMPORT_C void
|
GetSupportedSourceSampleRatesL
|
(
|
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.
Parameters
RArray
<
TUint
> & aSupportedRates
|
The supported rates.
|
SetCodec(TFourCC, TFourCC)
Sets the codec to be used. Useful when recording data.
Parameters
TFourCC
aSourceDataType
|
The data type of the source of the codec.
|
TFourCC
aSinkDataType
|
The data type of the sink of the codec.
|
SetSinkBitRate(TUint)
IMPORT_C
TInt
|
SetSinkBitRate
|
(
|
TUint
|
aRate
|
)
|
const
|
Set the bit rate of the data sink in bits per second.
Parameters
TUint
aRate
|
The bit rate, in bits per second.
|
SetSinkDataType(TFourCC)
IMPORT_C
TInt
|
SetSinkDataType
|
(
|
TFourCC
|
aDataType
|
)
|
const
|
Set the fourCC code of the sink.
SetSinkFormat(TUid)
IMPORT_C
TInt
|
SetSinkFormat
|
(
|
TUid
|
aFormatUid
|
)
|
const
|
Sets the format of the data sink.
The UID corresponds to the UID of the CMMFFormat-derived ECOM plugin to be used.
Parameters
TUid
aFormatUid
|
The format plugin to be used.
|
SetSinkNumChannels(TUint)
IMPORT_C
TInt
|
SetSinkNumChannels
|
(
|
TUint
|
aNumChannels
|
)
|
const
|
Sets the number of channels in the data sink. For example, one channel for mono, two channels for stereo etc.
Parameters
TUint
aNumChannels
|
The number of channels.
|
SetSinkSampleRate(TUint)
IMPORT_C
TInt
|
SetSinkSampleRate
|
(
|
TUint
|
aSampleRate
|
)
|
const
|
Sets the sample rate of the data sink in samples per second.
Parameters
TUint
aSampleRate
|
The sample rate, in samples per second.
|
SetSourceBitRate(TUint)
IMPORT_C
TInt
|
SetSourceBitRate
|
(
|
TUint
|
aRate
|
)
|
const
|
Sets the bit rate of the data source in bits per second.
Parameters
TUint
aRate
|
The bit rate, in bits per second.
|
SetSourceDataType(TFourCC)
IMPORT_C
TInt
|
SetSourceDataType
|
(
|
TFourCC
|
aDataType
|
)
|
const
|
Sets the fourCC code of the source.
SetSourceFormat(TUid)
IMPORT_C
TInt
|
SetSourceFormat
|
(
|
TUid
|
aFormatUid
|
)
|
const
|
Sets the format of the data source.
The UID corresponds to the UID of the CMMFFormat-derived ECOM plugin to be used.
Parameters
TUid
aFormatUid
|
The format plugin to be used.
|
SetSourceNumChannels(TUint)
IMPORT_C
TInt
|
SetSourceNumChannels
|
(
|
TUint
|
aNumChannels
|
)
|
const
|
Sets the number of channels in the data source. For example, one channel for mono, two channels for stereo etc.
Parameters
TUint
aNumChannels
|
The number of channels.
|
SetSourceSampleRate(TUint)
IMPORT_C
TInt
|
SetSourceSampleRate
|
(
|
TUint
|
aSampleRate
|
)
|
const
|
Sets the sample rate of the data source in samples per second.
Parameters
TUint
aSampleRate
|
The sample rate, in samples per second.
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.