| Reply | « Previous Thread | Next Thread » |
|
How can I make it? I use "x-wav" and "wav" type, my application crashes:(
|
|
Quote:
try using with the following mime type. audio/wav audio/x-wav regards, KKrish ============================= Before to ask the question, Few things to be remind 1- Check wiki.forum.nokia 2- Forum.nokia.com, developer.symbian.org 3- Check on google |
|
Thanks. I mean i used "audio/x-wav" and "audio/wav" and it crashed. Are the audio files not in proper format that 6280 supports (e.g., sample rate, bit rate and so on).
|
|
could you paste the code? you used to create the Player
============================= Before to ask the question, Few things to be remind 1- Check wiki.forum.nokia 2- Forum.nokia.com, developer.symbian.org 3- Check on google |
|
Very simple, just as below:
... if((m_sndtype&XWAV_SND)!=0) sfxplayer[index] = Manager.createPlayer("".getClass().getResourceAsStream(filename), "audio/x-wav"); elseif((m_sndtype&WAV_SND)!=0) sfxplayer[index] = Manager.createPlayer("".getClass().getResourceAsStream(filename), "audio/wav"); ... |
|
Both MIME types should work on 6280. Is the file in correct format? Is the file in the JAR file for sure?
Hartti |
|
Hi gootsing,
Can you please ensure that the inputstream returned by the code "".getClass().getResourceAsStream(filename) is not null. I suspect that the "".getClass() method call as it will return the String class. Best Regards, Gracy |
|
Also would like to know whether you tried in the corresponding emulator? Are you getting any exceptions?
Regards Gopal __________________ MobiQuil.com An initiative by Developers for Developers. http://www.mobiquil.com - Alpha - Launched. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| wav file to Byte[] array in J2ME (+playing it) | norrissmith | Mobile Java General | 2 | 2008-01-29 20:56 |
| How can the WAP browser communicate to J2ME application? | hbfornies | Mobile Java General | 20 | 2007-03-02 17:32 |
| 6280 j2me camera application and incoming call... | adigadish | Mobile Java General | 0 | 2006-10-18 15:51 |
| Petition: ANyone able to make a simple Time-lapse function for 6270 / 6280 in j2me?? | hjgabrielsen | Mobile Java General | 2 | 2006-04-18 22:28 |
| J2ME Polish Version 1.0 RC6 | enough | Mobile Java General | 1 | 2004-07-20 12:25 |