i want to add audio to the application. i habe added audio but the problem is that the audio does not stop till the audio clip is over. How do i make it stop. Please give axample.
A:
If you are using Player interface from javax.microedition.media package. You can just call stop method of it. Please see Manager class documentation from MIDP API document.
try {
Player p = Manager.createPlayer("http://myhost/abc.wav");
p.start();
p.stop();
} catch (MediaException pe) {
} catch (IOException ioe) {
}
Wonil
2010-03-15 09:37:20