com.siemens.mp.game
Class Sound
java.lang.Object
com.siemens.mp.game.Sound
- public class Sound
- extends Object
This class gives basic access to the phone's sound capability.
You can play tones with the given frequency and duration.
Constructor Summary |
Sound()
|
Method Summary |
static void |
playTone(int tone_freq,
int tone_time)
plays a tone
Warning: The Sound class is completely independent of MelodyComposer class, so don't use its predefined tones. |
Sound
public Sound()
playTone
public static void playTone(int tone_freq,
int tone_time)
- plays a tone
Warning: The Sound class is completely independent of MelodyComposer class, so don't use its predefined tones.
- Parameters:
tone_freq
- the frequency of this tone [Hz]tone_time
- the duration of this tone [ms]