CRadioPlayerUtility::CBody Class Reference
class CRadioPlayerUtility::CBody : public CBase
|
This class encapsulates the implementation body of
CRadioPlayerUtility
interface.
Radio_Utility.lib
-
Since
-
S60 3.2
Inherits from
-
CRadioPlayerUtility::CBody
Constructor & Destructor Documentation
Member Functions Documentation
Close()
Close the radio player and free all memory allocated. Any ongoing playing activity will be stopped if no other clients need it.
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
CustomInterface(TUid)
TAny
*
|
CustomInterface
|
(
|
TUid
|
InterfaceId
|
)
|
|
Retrieves a custom interface to the device. (Used by Audio Enhancement)
GetBalance(TInt &, TInt &)
TInt
|
GetBalance
|
(
|
TInt
&
|
aLeftPercentage,
|
|
TInt
&
|
aRightPercentage
|
|
)
|
const
|
Get the speaker balance set for playing.
Parameters
TInt
& aLeftPercentage
|
On return contains left speaker volume perecentage. This can be any value from zero to 100. Zero value means left speaker is muted.
|
TInt
& aRightPercentage
|
On return contains right speaker volume perecentage. This can be any value from zero to 100. Zero value means right speaker is muted.
|
GetMaxVolume(TInt &)
TInt
|
GetMaxVolume
|
(
|
TInt
&
|
aMaxVolume
|
)
|
const
|
Get the maximum volume supported by the device. Volume range from 0 to max. Setting volume to zero will mute the speakers.
Parameters
TInt
& aMaxVolume
|
On return contains the maximum volume supported.
|
GetVolume(TInt &)
Parameters
TInt
& aVolume
|
On return contains the current volume.
|
IsMute()
Find out if the audio is muted or not.
Mute(TBool)
Mutes or unmutes radio playback.
Parameters
TBool
aMute
|
ETrue to mute the audio, EFalse to unmute it.
|
NewL(RRadioSession &, MRadioPlayerObserver &)
Play()
Asynchronous request to start playing the radio.
User
must be ready to receive callback method MrpoStateChange. If radio plays successfully, the user will receive callback method MrpoStateChange with ERadioPlayerPlaying and KErrNone. If a problem is encountered, user will receive callback MrpoStateChange with ERadioPlayerIdle with an error code.
PlayerState(TPlayerState &)
void
|
PlayerState
|
(
|
TPlayerState
&
|
aPlayerState
|
)
|
const
|
Retrieve the current state of the player. If the radio is already playing, client should simply retrieve current settings such as volume, etc.
Parameters
TPlayerState
& aPlayerState
|
|
SetBalance(TInt, TInt)
TInt
|
SetBalance
|
(
|
TInt
|
aLeftPercentage,
|
|
TInt
|
aRightPercentage
|
|
)
|
|
Set the speaker balance for playing.
Parameters
TInt
aLeftPercentage
|
Left speaker volume percentage. This can be any value from zero to 100. Setting a zero value mutes the sound on left speaker.
|
TInt
aRightPercentage
|
Right speaker volume percentage. This can be any value from zero to 100. Setting a zero value mutes the sound on right speaker.
|
SetVolume(TInt)
Set the volume to the specified level. This can be any value from zero to max returned by GetMaxVolume.
Parameters
TInt
aVolume
|
The volume level to set.
|
SetVolumeRamp(const TTimeIntervalMicroSeconds &)
Set a volume ramp. Must be called before Play.
-
Since
-
S60 3.2
Parameters
const
TTimeIntervalMicroSeconds
& aRampInterval
|
The time interval over which the volume should be increased from zero to the current volume setting.
|
Stop()
Asynchronous request to stop the radio.
This will stop radio for all client applications playing the radio. If the application wishes to terminate without disrupting the radio playback (in case of multiple active applications running), the application should terminate without issuing Stop.
User
must be ready to receive callback method MrpoStateChange.
Member Data Documentation
MRadioPlayerObserver * iRadioPlayerUtilityClient
RRadioSession * iRadioSession
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.