Motorola E680 Technical Manual - Page 49

VolumeControl, StopTimeControl, Manager Class

Page 49 highlights

13 JSR 135 Mobile Media API VolumeControl VolumeControl is an interface for manipulating the audio volume of a Player. The JSR 135 Mobile Media API will implement public interface VolumeControl. The following describes the different volume settings found within VolumeControl: • Volume Settings - allows the output volume to be specified using an integer value that varies between 0 and 100. • Specifying Volume in the Level Scale - specifies volume in a linear scale. It ranges from 0 - 100 where 0 represents silence and 100 represents the highest volume available. • Mute - setting mute on or off does not change the volume level returned by the getLevel. If mute is on, no audio signal is produced by the Player. If mute is off, an audio signal is produced and the volume is restored. The following is a list of available methods with regards to VoumeControl: -getLevel: Get the current volume setting. -isMuted: Get the mute state of the signal associated with this VolumeControl. -setLevel (int level): Set the volume using a linear point scale with values between 0 and 100. -setMute (Boolean mute): Mute or unmute the Player associated with this VolumeControl. StopTimeControl StopTimeControl allows a specific preset sleep timer for a player. The JSR 135 Mobile Media API will implement public interface StopTimeControl. The following is a list of available methods with regards to StopTimeControl: -getStopTime: Gets the last value successfully by setStopTime. -setStopTime (long stopTime): Sets the media time at which you want the Player to stop. Manager Class Manager Class is the access point for obtaining system dependant resources such as players for multimedia processing. A Player is an object used to control and render media that is specific to the content type of the data. Manager provides access to an implementation specific mechanism for constructing Players. For convenience, Manager also provides a simplified method to generate simple tones. Primarily, the Multimedia API will provide a way to check available/supported content types. 49

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107

13
JSR 135 Mobile Media API
49
VolumeControl
VolumeControl is an interface for manipulating the audio volume of a Player. The JSR 135
Mobile Media API will implement public interface VolumeControl.
The following describes the different volume settings found within VolumeControl:
Volume Settings - allows the output volume to be specified using an integer
value that varies between 0 and 100.
Specifying Volume in the Level Scale - specifies volume in a linear scale. It
ranges from 0 – 100 where 0 represents silence and 100 represents the highest
volume available.
Mute – setting mute on or off does not change the volume level returned by the
getLevel. If mute is on, no audio signal is produced by the Player. If mute is off,
an audio signal is produced and the volume is restored.
The following is a list of available methods with regards to VoumeControl:
-getLevel
: Get the current volume setting.
-isMuted
: Get the mute state of the signal associated with this VolumeControl.
-setLevel (int level)
: Set the volume using a linear point scale with values
between 0 and 100.
-setMute (Boolean mute)
: Mute or unmute the Player associated with this
VolumeControl.
StopTimeControl
StopTimeControl allows a specific preset sleep timer for a player. The JSR 135 Mobile
Media API will implement public interface StopTimeControl.
The following is a list of available methods with regards to StopTimeControl:
-getStopTime
: Gets the last value successfully by setStopTime.
-setStopTime (long stopTime)
: Sets the media time at which you want the
Player to stop.
Manager Class
Manager Class is the access point for obtaining system dependant resources such as
players for multimedia processing. A Player is an object used to control and render media
that is specific to the content type of the data. Manager provides access to an
implementation specific mechanism for constructing Players. For convenience, Manager
also provides a simplified method to generate simple tones. Primarily, the Multimedia API
will provide a way to check available/supported content types.