#include "mmfstandardcustomcommands.h"
class RMMFAudioPlayDeviceCustomCommands : public RMMFCustomCommandsBase |
Public Member Functions | |
---|---|
RMMFAudioPlayDeviceCustomCommands(RMMFController &) | |
IMPORT_C TInt | GetBalance(TInt &) |
IMPORT_C TInt | GetMaxVolume(TInt &) |
IMPORT_C TInt | GetVolume(TInt &) |
IMPORT_C TInt | SetBalance(TInt) |
IMPORT_C TInt | SetVolume(TInt) |
IMPORT_C TInt | SetVolumeRamp(const TTimeIntervalMicroSeconds &) |
Inherited Attributes | |
---|---|
RMMFCustomCommandsBase::iController | |
RMMFCustomCommandsBase::iDestinationPckg |
Inherited Functions | |
---|---|
RMMFCustomCommandsBase::RMMFCustomCommandsBase(RMMFController &,TUid) |
Client class to access Audio Play Device functionality.
IMPORT_C | RMMFAudioPlayDeviceCustomCommands | ( | RMMFController & | aController | ) |
Constructor.
Parameter | Description |
---|---|
aController | The client side controller object to be used by this custom command interface. |
Sets the balance between the left and right stereo audio channels.
Parameter | Description |
---|---|
aBalance | Use a value between KMMFBalanceMaxLeft and KMMFBalanceMaxRight. Centre balance can be restored by using KMMFBalanceCenter. |
Returns: One of the system-wide error codes.
IMPORT_C TInt | SetVolumeRamp | ( | const TTimeIntervalMicroSeconds & | aRampDuration | ) | const |
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.
Parameter | Description |
---|---|
aRampDuration | The duration over which the volume is to be increased, in microseconds. |
Returns: One of the system-wide error codes.