example.audiodemo
Class AudioPlayer

java.lang.Object
  extended by javax.microedition.midlet.MIDlet
      extended by example.audiodemo.AudioPlayer
All Implemented Interfaces:
javax.microedition.lcdui.CommandListener

public class AudioPlayer
extends javax.microedition.midlet.MIDlet
implements javax.microedition.lcdui.CommandListener

This is a demo midlet to show the basic audio functionalities, to play wave file, tone, tone sequence from http, resource jar file and record store.


Constructor Summary
AudioPlayer()
           
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable s)
           
 void destroyApp(boolean unconditional)
          Destroy must cleanup everything not handled by the garbage collector.
static javax.microedition.lcdui.List getList()
           
 void pauseApp()
          Called when this MIDlet is paused.
 void startApp()
          Called when this MIDlet is started for the first time, or when it returns from paused mode.
 
Methods inherited from class javax.microedition.midlet.MIDlet
checkPermission, getAppProperty, notifyDestroyed, notifyPaused, platformRequest, resumeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AudioPlayer

public AudioPlayer()
Method Detail

getList

public static javax.microedition.lcdui.List getList()

startApp

public void startApp()
Called when this MIDlet is started for the first time, or when it returns from paused mode. If a player is visible, and it was playing when the MIDlet was paused, call its playSound method.

Specified by:
startApp in class javax.microedition.midlet.MIDlet

pauseApp

public void pauseApp()
Called when this MIDlet is paused. If the player GUI is visible, call its pauseSound method. For consistency across different VM's it's a good idea to stop the player if it's currently playing.

Specified by:
pauseApp in class javax.microedition.midlet.MIDlet

destroyApp

public void destroyApp(boolean unconditional)
Destroy must cleanup everything not handled by the garbage collector.

Specified by:
destroyApp in class javax.microedition.midlet.MIDlet

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable s)
Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener