×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    6

    Player rejects mp3 and wav files

    I am trying to make a program which needs to play audio files. I am using an InputStream and loading the audio file from a package in the application. Here's the code that loads the file:

    Code:
    InputStream isFile;
                
                isFile = getClass().getResourceAsStream("//SFX/ss3.wav");
                snare3 = Manager.createPlayer(isFile, "audio/x-wav");
                snare3.addPlayerListener(this);
                snare3.realize();
    It loads and plays properly on the Series 40 5th Ed. SDK emulator. However, on my phone, a Nokia 6102i (Series 40 MIDP 2.0), when I try to load the program, I get an error stating that x-wav is not an accepted format. I tried with an MP3 and got an error that mpeg is not an accepted format.

    I don't understand what the problem is. Why does it work in the emulator and not on the phone? Did Nokia fail to implement proper Java media support with the phone?

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Player rejects mp3 and wav files

    Please note that 6102i is a Series 40 2nd Edition device and you have to use Series 40 Platform 2.0 SDK for emulating for this device.

    Have a look at MIDP: Mobile Media API Support In Nokia Devices v2.0
    http://www.forum.nokia.com/info/sw.n..._0_en.xls.html

    Regards
    Gopal

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    6

    Re: Player rejects mp3 and wav files

    Quote Originally Posted by balagopalks View Post
    Please note that 6102i is a Series 40 2nd Edition device and you have to use Series 40 Platform 2.0 SDK for emulating for this device.

    Have a look at MIDP: Mobile Media API Support In Nokia Devices v2.0
    http://www.forum.nokia.com/info/sw.n..._0_en.xls.html

    Regards
    Gopal
    Well, I'm an idiot. I read that whole page to learn the phone's specs but apparently I missed the developer platform.

    *bangs head*

    Thanks.

  4. #4
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Player rejects mp3 and wav files

    No worries dude! This could happen to any one

    Regards
    Gopal

  5. #5
    Registered User
    Join Date
    Jan 2008
    Posts
    6

    Re: Player rejects mp3 and wav files

    Quote Originally Posted by balagopalks View Post
    No worries dude! This could happen to any one

    Regards
    Gopal
    Ha. I doubt that.

    So I am not going to be able to play sound files through Java at all? That's extremely frustrating...

    Some programs that I built in Netbeans with the 5th ed. won't run in the 2nd ed. emulator, even though they work on my phone...

  6. #6
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Player rejects mp3 and wav files

    Quote Originally Posted by thelonesoldier View Post
    Ha. I doubt that.

    So I am not going to be able to play sound files through Java at all? That's extremely frustrating...

    Some programs that I built in Netbeans with the 5th ed. won't run in the 2nd ed. emulator, even though they work on my phone...
    You can play sound files with Java. You have to check the supported file formats in that device.

    Regards
    Gopal
    Twitter : @balagopalks
    Linkedin : @balagopalks

  7. #7
    Registered User
    Join Date
    Jan 2008
    Posts
    6

    Re: Player rejects mp3 and wav files

    Quote Originally Posted by balagopalks View Post
    You can play sound files with Java. You have to check the supported file formats in that device.

    Regards
    Gopal
    The list doesn't have my specific model of phone but all of the similar models don't support ANY kind of audio. In fact, the Series 40 2nd ed. phones don't seem to support much of anything. It's rather disappointing.

Similar Threads

  1. CMdaAudioPlayerUtility compressed wav files
    By s4028469 in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2007-10-17, 07:25
  2. WAV To MP3
    By TMC in forum Audio
    Replies: 3
    Last Post: 2007-05-14, 19:09
  3. mp3 player for 6600
    By peebz in forum Symbian
    Replies: 0
    Last Post: 2003-12-22, 08:59
  4. N-6600:cannot use wav files as a ringtones ?
    By angel-death in forum General Development Questions
    Replies: 2
    Last Post: 2003-12-03, 15:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×