Hi,
Im trying to play recorded wave file.While playing,exception is thrown at foll. stmt.:
Player player = Manager.createPlayer(is, "audio/mpeg");
My entire code for playing wave file is as follows:
if (types[cnt].equals("audio/x-wav")) {
Class clazz = Class.forName("RecordAudio");
InputStream is = clazz.getResourceAsStream("file:///SDCard/BlackBerry/original.wav");
//create an instance of the player from the InputStream
Player player = Manager.createPlayer(is, "audio/mpeg");
player.realize();
player.prefetch();
//start the player
player.start();
}
Please help me out. Thanks in advance.