Location:
mmfstandardcustomcommands.h
Link against: mmfstandardcustomcommands.lib
class RMMFAudioPlayDeviceCustomCommands : public RMMFCustomCommandsBase;
Description
Client class to access Audio Play Device functionality.
The class uses the custom command function of the controller plugin, and removes the necessity for the client to formulate
the custom commands.
Derivation
RMMFAudioPlayDeviceCustomCommands
- Client class to access Audio Play Device functionality
Members
Defined in RMMFAudioPlayDeviceCustomCommands
:
GetBalance()
, GetMaxVolume()
, GetVolume()
, RMMFAudioPlayDeviceCustomCommands()
, SetBalance()
, SetVolume()
, SetVolumeRamp()
Inherited from RMMFCustomCommandsBase
:
iController
,
iDestinationPckg
IMPORT_C RMMFAudioPlayDeviceCustomCommands(RMMFController &aController);
Description
Constructor.
Parameters
RMMFController &aController |
The client side controller object to be used by this custom command interface.
|
|
IMPORT_C TInt SetVolume(TInt aVolume) const;
Description
Sets the volume of the sound device.
Parameters
TInt aVolume |
The new volume.
|
|
Return value
TInt
|
One of the system-wide error codes.
|
|
IMPORT_C TInt GetMaxVolume(TInt &aMaxVolume) const;
Description
Gets the maximum volume supported by the sound device.
Parameters
TInt &aMaxVolume |
The maximum volume, filled in by the controller.
|
|
Return value
TInt
|
One of the system-wide error codes.
|
|
IMPORT_C TInt GetVolume(TInt &aVolume) const;
Description
Gets the current playback volume.
Parameters
TInt &aVolume |
On return contains the current playback volume.
|
|
Return value
TInt
|
One of the system-wide error codes.
|
|
IMPORT_C TInt SetVolumeRamp(const TTimeIntervalMicroSeconds &aRampDuration) const;
Description
Sets a volume ramp.
This will cause the sound device to start playing with zero volume, increasing the volume over aRampDuration microseconds.
The volume ramp can be removed by setting the ramp duration to zero.
Parameters
Return value
TInt
|
One of the system-wide error codes.
|
|
IMPORT_C TInt SetBalance(TInt aBalance) const;
Description
Sets the balance between the left and right stereo audio channels.
Parameters
TInt aBalance |
Use a value between KMMFBalanceMaxLeft and KMMFBalanceMaxRight. Centre balance can be restored by using KMMFBalanceCenter.
|
|
Return value
TInt
|
One of the system-wide error codes.
|
|
IMPORT_C TInt GetBalance(TInt &aBalance) const;
Description
Gets the balance between the left and right stereo audio channels.
Parameters
TInt &aBalance |
The current balance, filled in by the controller.
|
|
Return value
TInt
|
One of the system-wide error codes.
|
|