You Are Here:

Community: Developer Discussion Boards

#1 Old Media Exception - 2003-04-06, 08:01

Join Date: Mar 2003
Posts: 9
mac1ej
Offline
Registered User
working on 3650 with multimedia api.. playing MIDI files using Player. First time my sounds play fine. When playing sounds again, i get the following error from my prefetch call:

javax.microedition.media.MediaException: Cannot set sequence to MIDI sequencer

has anyone seen this before? it seems like i cant get access to the audio device, but im not sure..

thanks in advance for your help..
Reply With Quote

#2 Old 2004-01-30, 12:03

Join Date: Jan 2004
Posts: 5
gabe2
Offline
Registered User
Having the same problem. :( Has anyone figured it out? Please help.

GABE
Reply With Quote

#3 Old 2004-01-30, 15:41

Join Date: Jan 2004
Posts: 82
Location: Mumbai,India
ankur_k
Offline
Regular Contributor
Are you playing more than 1 MIDI Sounds?
May be simultaniously?
Reply With Quote

#4 Old 2004-01-30, 19:16

Join Date: Jan 2004
Posts: 5
gabe2
Offline
Registered User
No the sounds are only being played one at a time. Most of the time they are not even interupting each other. I create a bunch of players when the app is started and every sound will play the frist time it is needed but after that it will throw a MediaException.

Since other players can play I don't think it's a problem of trying to get hardware resouces so I have to assume this is a problem with gathering the sound data the second time. It needs to be reinitallized or something I think. I just donno how that can be done without creating a new sound player each time.

Thanks for your help,
GABE
Reply With Quote

#5 Old 2004-02-01, 17:28

Join Date: Mar 2003
Posts: 6
venugujjeti
Offline
Registered User
that could be because you can have only 10 player objects in memory at one time and its not sufficient just null the object, you need to close the player object properly so you can free space for further players.
Reply With Quote

#6 Old 2004-02-12, 20:19

Join Date: Jan 2004
Posts: 5
gabe2
Offline
Registered User
But they are all in memory the whole time and they work the first time they are played but not the subsequent times. Closing an nulling out the player object (which means i have to create a new one each time i want to play a sound) will play the sound each time (ususally) work but begins to fragment memory (due to the non compacting garbage colloector) which causes Memory Full exceptions eventaully. Keeping all the player objects in memory is a better solution if it can be made to work. (Which I'm not sure it can be.)

GABE
Reply With Quote

#7 Old 2004-02-26, 09:17

Join Date: Sep 2003
Posts: 34
noise_from_guitar
Offline
Registered User
Well, here is what I guess for your situation.

The first time you call the player, it works fine since it is just realized.
After playing the sound, the player is left at the end of the media. What you have to do is to stop it before play it again so that the media start at the beginning in the next time you play. I would suggest that after you switched the player, stop it before you play it.

Since I haven't tried to use create several players in the memory, please tell me whether you have make this success or not.


P.S Please forgive my poor English, as I am not a native speaker and I'm typing this in hurry.
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

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