You Are Here:

Community: Developer Discussion Boards

#1 Old LineUnavailableException after a while with MIDP2.0 emulators - 2003-10-30, 15:31

Join Date: Oct 2003
Posts: 62
meijerpb
Offline
Regular Contributor
Hi,

In testing my MIDlet which opens, plays and closes a synthesized WAV sound every second, I find that I get a LineUnavailableException each time after *exactly* 33 rounds. This only happens with the MIDP 2.0 emulators, not with the Nokia 3650 (MIDP 1.0) emulator. It happens on both Windows 2000 and XP. Is there a bug in the implementation of Java sound for Windows such that closing an audio player does not properly clean up with the MIDP 2.0 emulators? I'm using Java 1.4.2, and the latest beta 0.3.1 for series 60 emulator, while I believe I properly use createPlayer, realize, prefetch, start and close everytime the sound is played.

The exception trace occurring after playing a sound 33 times is appended.
Changing the sample frequency from 11025 to 8000 Hz made no difference.

Any ideas?

Peter Meijer


javax.sound.sampled.LineUnavailableException: No Free Voices

at com.sun.media.sound.MixerClip.nSetup(Native Method)

at com.sun.media.sound.MixerClip.getValidVoiceId(MixerClip.java:593)

at com.sun.media.sound.MixerClip.implOpen(MixerClip.java:571)

at com.sun.media.sound.MixerClip.open(MixerClip.java:161)

at com.sun.media.sound.MixerClip.open(MixerClip.java:249)

at com.nokia.phone.sdk.concept.mirrors.mma.media.player.WavPlayer.doRealize(WavPlayer.java)

at com.nokia.phone.sdk.concept.mirrors.mma.media.player.BasicPlayer.realize(BasicPlayer.java)

at com.nokia.phone.sdk.concept.mirrors.mma.media.player.BasicPlayer.deallocate(BasicPlayer.java)

at com.nokia.phone.sdk.concept.mirrors.mma.media.player.BasicPlayer.close(BasicPlayer.java)

at com.nokia.phone.sdk.concept.mirrors.mma.media.MMAManager.close(MMAManager.java)

at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.nokia.phone.sdk.concept.gateway.e.a(e.java)

at com.nokia.phone.sdk.concept.gateway.e.run(e.java)

at java.lang.Thread.run(Thread.java:534)
Last edited by meijerpb : 2003-11-03 at 11:34.
Reply With Quote

#2 Old 2003-11-03, 11:14

Join Date: Oct 2003
Posts: 62
meijerpb
Offline
Regular Contributor
OK, to make my case still stronger, I took the hassle
to play the "bark.wav" in the standard audiodemo app:
I selected the AudioPlayer demo, and then ran the
"Bark [rms]" example for a few dozen times, and guess
what: again it yielded the infamous

javax.sound.sampled.LineUnavailableException: No Free Voices


after *exactly* 33 rounds!

I used Series_60_MIDP_Concept_SDK_Beta_0_3_1_Nokia_edition
on Windows 2000 via the regular KToolbar. So something
seems wrong with the sound part of the MIDP 2.0 emulator
(for Windows 2000 and XP)?

Please fix this problem, because I have an application
under development that continuously plays sound samples,
and it crashes on the above problem within a minute or so.

Peter Meijer

http://www.seeingwithsound.com
Reply With Quote

#3 Old 2003-11-03, 11:37

Join Date: Oct 2003
Posts: 62
meijerpb
Offline
Regular Contributor
By the way, the problem does *not* show up on the
Motorola iDEN i730 emulator for MIDP2.0 MIDlets,
on Windows 2000, after well over a hundred rounds,
so it seems to be specific for the Nokia MIDP2.0
emulators.

Peter Meijer

http://www.seeingwithsound.com
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