Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2006

    Error in emulating Mp3 file

    i tryed to use the Player class to sound a mp3 file (i tryed also a Wav file).

    This is the code i used to do it:
    protected void startApp( ) throws MIDletStateChangeException
    //InputStream in;
    Form f=new Form("Prova");
    f.append (new StringItem ("My first Text", "Altro"));

    InputStream in = getClass().getResourceAsStream("/500HZ.wav");

    //if ((in = (getClass().getResourceAsStream("/500HZ.wav")))!=null){

    Player p= Manager.createPlayer (in, "audio/wav");

    When i emulate it by my computer it doesn't sound and this is the error reported in the "Console" in Eclipse:
    "Emulator command: C:\Nokia\Devices\Nokia_Prototype_SDK_4_0\devices\Prototype_4_0_S60_MIDP_Emulator\bin\midp.exe -Xdescriptor "C:\Documents and Settings\giacomo\Impostazioni locali\Temp\ueiemulator50134.tmp\My_Midlet.jad"
    # An unexpected error has been detected by Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x050b25e2, pid=572, tid=2996
    # Java VM: Java HotSpot(TM) Client VM (1.6.0_01-b06 mixed mode, sharing)
    # Problematic frame:
    # C [AudioRI.dll+0x25e2]
    # An error report file with more information is saved as hs_err_pid572.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    StaticWrapper.cpp: ERROR: FindWindow returned null
    DirectSoundEngine.cpp: SetCooperativeLevel set FAILED!
    DirectSoundPlayer.cpp: ERROR: iDirectSound8 is NULL!

    NOTE: the same code works perfectly on an other computer. What's wrong in my computer?

  2. #2
    Registered User
    Join Date
    Apr 2006

    Re: Error in emulating Mp3 file

    Ok, i solved the problem!It was just an error of Java 6 versione!! Now,it works correct with the version 5!

Similar Threads

  1. how to play mp3 file?
    By zwgoal in forum Symbian Media (Closed)
    Replies: 3
    Last Post: 2005-11-14, 08:21
  2. what format to save mp3 file?
    By zwgoal in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2005-11-13, 10:57
  3. How to reformat the file?
    By ryanfunghk in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2005-03-26, 17:43
  4. Play MP3 file on Emulator
    By fcobsb in forum Symbian
    Replies: 1
    Last Post: 2003-11-27, 10:40

Posting Permissions

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