com.siemens.mp.game
Class Sound

java.lang.Object
  extended bycom.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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sound

public Sound()
Method Detail

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]


Generated on 2003-10-17For further information and updates, please visit Siemens mobile Developer Portal