|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
VolumeControl
is an interface for manipulating
the audio volume of a Player
.
true
,
no audio signal is produced by this Player
; if mute
is false
an audio signal is produced and the volume is restored.
VolumeControl
changes, a
VOLUME_CHANGED
event is delivered through
the PlayerListener
.
Control
,
Player
,
PlayerListener
Method Summary | |
int |
getLevel()
Get the current volume level set. |
boolean |
isMuted()
Get the mute state of the signal associated with this VolumeControl . |
int |
setLevel(int level)
Set the volume using a linear point scale with values between 0 and 100. |
void |
setMute(boolean mute)
Mute or unmute the Player associated with this
VolumeControl .
|
Method Detail |
public void setMute(boolean mute)
Player
associated with this
VolumeControl
.
Note: Only available after the Player has been restarted by calling the start method. Noneffective during runtime.
Calling setMute(true)
on
the Player
that is already muted is ignored,
as is calling setMute(false)
on the
Player
that is not currently muted.
Going from a muted to an unmuted state doesn't affect the
volume.
When setMute
results in a change in
the muted state,
a VOLUME_CHANGED
event will be delivered
through the PlayerListener
.
mute
- Specify true
to mute the signal,
false
to unmute the signal.isMuted()
public boolean isMuted()
VolumeControl
.Note: Only available after the Player has been restarted by calling the start method. Noneffective during runtime.
setMute(boolean)
public int setLevel(int level)
VolumeControl
supports.
If the given level is less than 0 or greater than 100,
the level will be set to 0 or 100 respectively.
setLevel
results in a change in
the volume level,
a VOLUME_CHANGED
event will be delivered
through the PlayerListener
.
Note: Only available after the Player has been restarted by calling the start method. Noneffective during runtime.
level
- The new volume specified in the level scale.
getLevel()
public int getLevel()
Player
has not been prefetched),
getLevel
may return -1
.
-1
if the current volume level is unknown.setLevel(int)
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Generated on 2003-10-17 | For further information and updates, please visit Siemens mobile Developer Portal |