×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    17

    Nokia Sound UI problem(very urgent)

    We r a group of J2ME programmers and we are facing a problem in Nokia Sound UI. An exception(NullPointer) is thrown when we try to use FORMAT_WAVE in our sound constructor. But the same thing works fine when we use FORMAT_TONE, but this is not the desired result that we want. We urgently need a solution for this.

    More Info
    Sound Constructor:- Sound(byte[] data,int type)
    We currently using:- Sun One Studio(update 1), Nokia Series 60 MIDP SDK

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    393

    RE: Nokia Sound UI problem(very urgent)

    It should be FORMAT_WAV and not FORMAT_WAVE

    [N]/Forum Nokia
    Cheers,
    Nitin

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Merseyside
    Posts
    61
    If it's not that it could be that your not calling the init after the constructer, like:

    sound = new Sound(data, Sound.FORMAT_WAV);
    sound.init(data, Sound.FORMAT_WAV);

Posting Permissions

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