Note: On devices with MIDP 2.0 or newer, the Nokia UI API sound extensions
are replaced by classes in javax.microedition.media
.
com.nokia.mid.sound.Sound
The Nokia UI API supports playing sound. There are two mandatory types of sound supported initially:
Single notes, specified by frequency and duration.
Simple tunes, specified using the Nokia Smart Messaging ring tone binary format (the same format used for downloading new ring tones to Nokia devices).
In addition, the SoundListener
interface can be implemented to maintain
a queue of sounds to play next. This allows new sounds to be played after
existing sounds have finished playing.
When a Nokia device is set to silent, the Nokia UI API sound methods do not produce any sound.
There is no way for the user to otherwise control the volume of sound produced by MIDlets. Therefore, MIDlets that produce sound may benefit from an option (for example, in an Options screen) to set the volume level of sound produced.
com.nokia.mid.media.AudioOutputControl
The AudioOutputControl
extension
for the Mobile Media API, packaged as part of the Nokia UI API, allows MIDlets
to override the default audio routing on a device and control which audio
output is used to play back audio.