MPlayCustomInterface Class Reference

class MPlayCustomInterface

Custom interface class for play functionality created by the CMMFSwCodecWrapper::CustomInterface() method. It provides access to miscellaneous functionality such as volume settings. Ports of the sw codec wrapper may do this differently eg. via EAP. Note Users should not use RMdaDevSound::TCurrentSoundFormatBuf to send across the sample rate and channels because 1) it would mean mmfswcodecwrapper.h would have to include mdasound.h 2) the buffer size and encoding members are not required and 3) 3rd party ports may not use RMdaDevSound.

Note also that this interface is just a simple interface to get and set values. No checking is performed on the values sent (hence the Set methods do not return an error code).

Member Functions Documentation

BytesPlayed()

TUint BytesPlayed ( ) [pure virtual]

Get the number of bytes played.

SetVolume(TUint)

void SetVolume ( TUint aVolume ) [pure virtual]

Set the audio volume.

Parameters

TUint aVolume The specified audio volume.

SetVolumeRamp(const TTimeIntervalMicroSeconds &)

void SetVolumeRamp ( const TTimeIntervalMicroSeconds & aRampDuration ) [pure virtual]

Set the period over which the volume level is to rise smoothly from nothing to the required volume level.

Parameters

const TTimeIntervalMicroSeconds & aRampDuration The period over which the volume is to rise.

Volume()

TUint Volume ( ) [pure virtual]

Get the audio volume.

VolumeRamp()

TTimeIntervalMicroSeconds & VolumeRamp ( ) [pure virtual]

Get the period over which the volume level is to rise smoothly from nothing to the required volume level.