#include <mmf/common/mmfstandardcustomcommands.h>
Link against: mmfstandardcustomcommands.lib
class RMMFAudioPlayDeviceCustomCommands : public RMMFCustomCommandsBase, 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.
The class uses the custom command function of the controller plugin, and removes the necessity
for the client to formulate the custom commands.
IMPORT_C | RMMFAudioPlayDeviceCustomCommands | ( | RMMFController & | aController | ) |
Constructor.
Parameters | |
---|---|
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.
restored by using KMMFBalanceCenter.
Parameters | |
---|---|
aBalance | Use a value between KMMFBalanceMaxLeft and KMMFBalanceMaxRight. Centre balance can be |
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.
Parameters | |
---|---|
aRampDuration | The duration over which the volume is to be increased, in microseconds. |