com.siemens.mp.game
Class Melody

java.lang.Object
  extended bycom.siemens.mp.misc.NativeMem
      extended bycom.siemens.mp.game.Melody

public class Melody
extends com.siemens.mp.misc.NativeMem

This class can play a melody composed using the MelodyComposer. An instance of the Melody class cannot be created directly; instead it can be obtained by calling the MelodyComposer.getMelody method.

Example


Method Summary
 void play()
          Plays the user-defined melody.
static void stop()
          Stops the user-defined melody currently being played.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

play

public void play()
Plays the user-defined melody. The method returns immediately after the call, and playing is done in background.

See Also:
stop, MelodyComposer

Example


stop

public static void stop()
Stops the user-defined melody currently being played.

See Also:
play

Example



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