You Are Here:

Community: Developer Discussion Boards

#1 Old cannot open midi in s40 - 2008-04-10, 00:48

Join Date: Apr 2008
Posts: 2
Ertenal
Offline
Registered User
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?
Reply With Quote

#2 Old Re: cannot open midi in s40 - 2008-04-10, 10:46

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Offline
Forum Nokia Champion
Hi Ertenal,

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

Pit
Reply With Quote

#3 Old Re: cannot open midi in s40 - 2008-04-12, 18:39

Join Date: Apr 2008
Posts: 2
Ertenal
Offline
Registered User
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?
Reply With Quote

#4 Old Re: cannot open midi in s40 - 2008-04-12, 18:54

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Offline
Forum Nokia Champion
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
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
S40 MIDI troubles 21n9 Mobile Java Media (Graphics & Sounds) 5 2006-10-20 01:00
S40 MIDI HELP! 21n9 Symbian Media (Graphics & Sounds) 2 2006-10-15 22:53
Midi S40 probs 21n9 Mobile Java Media (Graphics & Sounds) 5 2006-09-25 03:58
Cannot open MIDI files with "drum track" (channel 10) on 6820 and 7250 (series 40) vasim000 Audio 0 2004-08-23 11:07
"Unable to open file" when downloading MIDI on 3510i joukox Audio 0 2003-06-19 18:39

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ