-
play audio files
Hi all,
I want to play a audio file. Iam using Nokia S60 EMULATOR. I just want to know
Does nokia S60 support Playing audio from a file (on Emulator)?
if yes, where should i store my audio file and what is the path i should give
Previously i used WTK2.5 and gave the path as "file:///root1/Testing/test1.wav" and stored the audio file at "C:\WTK25\appdb\DefaultColorPhone\filesystem\root1\Testing\test1.wav"
One more question should i use WAV file or AMR files in Nokia S60 phones
Thanks
-
Re: play audio files
[QUOTE=khalandar]Hi all,
I want to play a audio file. Iam using Nokia S60 EMULATOR. I just want to know
Does nokia S60 support Playing audio from a file (on Emulator)?
Thanks[/QUOTE]
I Have got the answer for the first question i.e Nokia S60 Emulator can play Audio. I have used the code
is = this.getClass().getResourceAsStream(resfile_name);
Player player = Manager.createPlayer(is, "audio/x-wav");
player.start();
And I could play the audio file.
If Any Expert present here could answer the other part of my question. That would almost solve my problem
Thanks
-
Re: play audio files
Hi khalandar,
It is possible to play audio from a file stored in the jar or file system. If you are using S60 emulator, the path (for accessing the input stream) should be given as "file://localhost/c:/Nokia/Sounds/play.wav" and the .wav file has to be placed in "C:\Nokia\Devices\Nokia_Prototype_SDK_4_0\devices\
Prototype_4_0_S60_MIDP_Emulator\bin\Storage\Default\C\Nokia\Sounds\".
The support on the different audio formats like wav/amr depends on the device implementation which can be found from the device specifications available at [url]http://www.forum.nokia.com/devices/[/url]
or by querying the device using 'Manager.getSupportedProtocols()'
Best Regards,
Gracy