RMMFAudioControllerCustomCommands Class Reference
#include
"mmfstandardcustomcommands.h"
Link against: mmfstandardcustomcommands.lib
class RMMFAudioControllerCustomCommands : public RMMFCustomCommandsBase |
Inherits from
- RMMFAudioControllerCustomCommands
Detailed Description
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.
Constructor & Destructor Documentation
RMMFAudioControllerCustomCommands ( RMMFController & )
IMPORT_C | RMMFAudioControllerCustomCommands | ( | RMMFController & | aController | ) | |
Parameter | Description | aController | The client side controller object to be used by this custom command interface. |
Member Function Documentation
GetSinkBitRate ( TUint & )
IMPORT_C TInt | GetSinkBitRate | ( | TUint & | aRate | ) | const |
Gets the bit rate of the data sink in bits per second.
Parameter | Description | aRate | The bit rate, in bits per second. |
Returns: One of the system-wide error codes.
GetSinkDataType ( TFourCC & )
Gets the fourCC code of the sink.
Parameter | Description | aDataType | The fourCC code. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aFormat | The format plugin being used. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aNumChannels | The number of channels. |
Returns: One of the system-wide error codes.
GetSinkSampleRate ( TUint & )
IMPORT_C TInt | GetSinkSampleRate | ( | TUint & | aRate | ) | const |
Gets the sample rate of the data sink in samples per second.
Parameter | Description | aRate | The sample rate, in samples per second. |
Returns: One of the system-wide error codes.
GetSourceBitRate ( TUint & )
IMPORT_C TInt | GetSourceBitRate | ( | TUint & | aRate | ) | const |
Gets the bit rate of the data source in bits per second.
Parameter | Description | aRate | The bit rate, in bits per second. |
Returns: One of the system-wide error codes.
GetSourceDataType ( TFourCC & )
IMPORT_C TInt | GetSourceDataType | ( | TFourCC & | aDataType | ) | const |
Get the fourCC code of the source.
Parameter | Description | aDataType | The fourCC code. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aFormat | The format plugin being used. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aNumChannels | The number of channels. |
Returns: One of the system-wide error codes.
GetSourceSampleRate ( TUint & )
IMPORT_C TInt | GetSourceSampleRate | ( | TUint & | aRate | ) | const |
Gets the sample rate of the data source in samples per second.
Parameter | Description | aRate | The sample rate, in samples per second. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aSupportedRates | The supported rates. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aSupportedDataTypes | The supported data types. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aSupportedChannels | The supported channels. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aSupportedRates | The supported rates. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aSupportedRates | The supported rates. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aSupportedDataTypes | The supported data types. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aSupportedChannels | The supported channels. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aSupportedRates | The supported rates. |
Returns: One of the system-wide error codes.
SetCodec ( TFourCC, TFourCC )
Sets the codec to be used. Useful when recording data.
Parameter | Description | aSourceDataType | The data type of the source of the codec. |
aSinkDataType | The data type of the sink of the codec. |
Returns: One of the system-wide error codes.
SetSinkBitRate ( TUint )
Set the bit rate of the data sink in bits per second.
Parameter | Description | aRate | The bit rate, in bits per second. |
Returns: One of the system-wide error codes.
SetSinkDataType ( TFourCC )
Set the fourCC code of the sink.
Parameter | Description | aDataType | The fourCC code. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aFormatUid | The format plugin to be used. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aNumChannels | The number of channels. |
Returns: One of the system-wide error codes.
SetSinkSampleRate ( TUint )
IMPORT_C TInt | SetSinkSampleRate | ( | TUint | aSampleRate | ) | const |
Sets the sample rate of the data sink in samples per second.
Parameter | Description | aSampleRate | The sample rate, in samples per second. |
Returns: One of the system-wide error codes.
SetSourceBitRate ( TUint )
IMPORT_C TInt | SetSourceBitRate | ( | TUint | aRate | ) | const |
Sets the bit rate of the data source in bits per second.
Parameter | Description | aRate | The bit rate, in bits per second. |
Returns: One of the system-wide error codes.
SetSourceDataType ( TFourCC )
Sets the fourCC code of the source.
Parameter | Description | aDataType | The fourCC code. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aFormatUid | The format plugin to be used. |
Returns: One of the system-wide error codes.
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.
Parameter | Description | aNumChannels | The number of channels. |
Returns: One of the system-wide error codes.
SetSourceSampleRate ( TUint )
IMPORT_C TInt | SetSourceSampleRate | ( | TUint | aSampleRate | ) | const |
Sets the sample rate of the data source in samples per second.
Parameter | Description | aSampleRate | The sample rate, in samples per second. |
Returns: One of the system-wide error codes.