×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    2

    cannot open midi in s40

    Hi, im using mmapi to open a midi file in my program. When im using the WTK SDK in netbeans, it works fine, but when i use the S40 SDK 3rd Edition then it won't get past the Manager.createPlayer(). This is de code:

    Code:
                    
    //Initializing MIDI player
    isMID = getClass().getResourceAsStream("/Funky_MID.mid");   
    System.out.println("it shows this");
    pMID = Manager.createPlayer(isMID, "audio/midi");
    System.out.println("it doesn't show this");
    As you can see, the first println is printed, but the second is not. Is there a tricky code on nokia s40 series to avoid this?

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: cannot open midi in s40

    Hi Ertenal,

    have you checked for exceptions that could be raised from the Manager.createPlayer() method?

    Pit

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    2

    Re: cannot open midi in s40

    Well, i think i finally know what it is. Nokia can't play multiple players??? so i have to stop the first one, and then play the other one. is this true?

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: cannot open midi in s40

    You can know if simultaneous audio players are supported checking the System property "supports.mixing": if it does, property value should be "true".

    You can check this post for more infos:

    http://discussion.forum.nokia.com/fo...ad.php?t=80537

    Pit

Similar Threads

  1. S40 MIDI troubles
    By 21n9 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2006-10-20, 00:00
  2. S40 MIDI HELP!
    By 21n9 in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2006-10-15, 21:53
  3. Midi S40 probs
    By 21n9 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2006-09-25, 02:58
  4. Replies: 0
    Last Post: 2004-08-23, 10:07
  5. Replies: 0
    Last Post: 2003-06-19, 17:39

Posting Permissions

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