×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Game Sounds and effects doesn't work on n95

    Hello guys, i'm doing a game for s60 n95 and i'm trying to play a simple midi in my game and i get follow JVM error:

    JVMJNCK038E JNI error in FromReflectedMethod: Argument #2 (0x4133EDFC) is not a valid object reference. It's type is: unknown

    JVMJNCK080E Error detected in the outermost frame of an attached thread

    JVMJNCK023E JNI error detected. Continuing...

    Here is my piece of code to do that:

    try {
    InputStream in = getClass().getResourceAsStream("/music.mid");
    Player player = ManagerImpl.getInstance().createPlayer(in, "audio/midi");
    player.start();

    } catch (Exception e) {
    System.out.println("In Catch");
    }

    Can anybody help me?

    Thx in advance.

  2. #2
    Nokia Developer Champion
    Join Date
    Oct 2006
    Location
    Bangalore, India
    Posts
    1,572

    Re: Game Sounds and effects doesn't work on n95

    hey not too sure about your problem, but i have a n95 and i have seen this strange thing which might be of help to you...

    if in the current profile, the warning tone's are on, the java can play sound, else all java sounds are muted !! strange. However, no crashes is seen, its just that sound is muted !

    good luck !
    Amit Kankani
    Nokia Developer Champion

  3. #3
    Regular Contributor
    Join Date
    Mar 2008
    Location
    Brazil
    Posts
    111

    Re: Game Sounds and effects doesn't work on n95

    Thx for reply amitkankani, but i think it is a problem on s60 sdk cause i did a game for sony ericsson mobile phone W910 using MMAPI 1.1 and i put the jar file on my n95 and sounds are perfect. The actual sound api from nokia S60_3rd_FP2_SDK_2 uses 1.2

Posting Permissions

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