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)

voidMrpoBalanceChange(TIntaLeftPercentage,
TIntaRightPercentage
)[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 aRightPercentageRight speaker volume percentage. This can be any value from zero to 100. Zero value means right speaker is muted.

MrpoMuteChange(TBool)

voidMrpoMuteChange(TBoolaMute)[pure virtual]

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

Since
S60 3.2

Parameters

TBool aMuteETrue indicates audio is muted.

MrpoStateChange(TPlayerState, TInt)

voidMrpoStateChange(TPlayerStateaState,
TIntaError
)[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 aStateRadio player state
TInt aErrorA standard system error code, only used when aState is ERadioPlayerIdle

MrpoVolumeChange(TInt)

voidMrpoVolumeChange(TIntaVolume)[pure virtual]

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

Since
S60 3.2

Parameters

TInt aVolumeCurrent volume.