MRadioPlayerObserver Class Reference

class MRadioPlayerObserver

This class provides the interface class to be implemented by object receiving request complete notification from radio player utility. These functions are called once the asynchronous request completes successfully or with an error.

In addition, this class provides the interface for receiving events about radio playback.

Since
S60 3.2

Member Functions Documentation

MrpoBalanceChange(TInt, TInt)

void MrpoBalanceChange ( TInt aLeftPercentage,
TInt aRightPercentage
) [pure virtual]

Called when balance setting changes. This may be caused by other applications.

Since
S60 3.2 Left speaker volume percentage. This can be any value from zero to 100. Zero value means left speaker is muted.

Parameters

TInt aLeftPercentage
TInt aRightPercentage Right speaker volume percentage. This can be any value from zero to 100. Zero value means right speaker is muted.

MrpoMuteChange(TBool)

void MrpoMuteChange ( TBool aMute ) [pure virtual]

Called when mute setting changes. This may be caused by other applications.

Since
S60 3.2

Parameters

TBool aMute ETrue indicates audio is muted.

MrpoStateChange(TPlayerState, TInt)

void MrpoStateChange ( TPlayerState aState,
TInt aError
) [pure virtual]

Radio state changed. This event is asynchronous and is received after a call to CRadioPlayerUtility::Play and CRadioPlayerUtility::Stop . This event is also generated when the radio is disrupted due to an error.

If the radio is disrupted due to an error, appropriate error code will be sent. The following are the most common error codes: KErrDied when radio is pre-empted by another application with higher priority, KErrHardwareNotAvailable when tuner is forced off (e.g. when FM transmitter is turned on).

Since
S60 3.2

Parameters

TPlayerState aState Radio player state
TInt aError A standard system error code, only used when aState is ERadioPlayerIdle

MrpoVolumeChange(TInt)

void MrpoVolumeChange ( TInt aVolume ) [pure virtual]

Called when volume changes. This may be caused by other applications.

Since
S60 3.2

Parameters

TInt aVolume Current volume.