Hi all,
i am developing one j2me application to play wav & mp3 file.
problems are:
- while try to play mp3 file in my phone (nokia 5610d) it is making "Out of memory" error.
- while try to play Wav file it is giving "Sounds are not allowed" exception.
few lines of my code is here.
Code to play Wav file
InputStream is = getClass().getResourceAsStream("/Child.wav");
player = Manager.createPlayer(is, "audio/x-wav");
player.realize(); player.start();
Code to play MP3 file
InputStream is = getClass().getResourceAsStream("/Child.mp3");<br/>
player = Manager.createPlayer(is, "audio/mpeg");
player.realize(); player.start();
Please let me know what is the problem in my code.