You Are Here:

Community: Developer Discussion Boards

#1 Old Sound in 3510i - 2003-03-24, 15:15

Join Date: Mar 2003
Posts: 2
crackerpuss
Offline
Registered User
Hi I'm using the Sound class to play sound on the 3510i in a midlet. The sound seems to work fine when the midlet is running and the device is not connected to the network, but when connected to the internet to download info to the midlet via http, the sound refuses to play. After disconnecting, the sound starts again. The application works fine in the emulator, both connected and disconnected. Is this a bug or feature in the phone? If so, is there a workaround?
Reply With Quote

#2 Old 2003-03-24, 22:52

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
The application is probably blocked with the HTTP code. Is this being done in a separate thread? I've read somewhere that some methods of the Connector and HttpConnection classes block all the rest of the threads in the application, so you might want to consider start playing the sound after the HTTP code is done.

I also want to add sound to my 3510i app. But unfortunately I am sound-iliterate. I have sound on the 7650, that's simple because it supports WAV format. But what do I need to do to play it (or something similar) on the 3510i? Is there any tool to convert the WAV file into a MIDI file (I think that's what I need for the 3510i, right?)? Then should I just use Sound.FORMAT_TONE as the second parameter to the constructor and init()?

shmoove
Reply With Quote

#3 Old 2003-04-01, 11:44

Join Date: Mar 2003
Posts: 2
crackerpuss
Offline
Registered User
hmmmm... The sound was not being played until after the http connection was disconected, but thanks for the idea. It looks like the problem is to do with the bearer. I was using GSM, and had the problem, as soon as I switched to GPRS, no problem - bizarre...
As far as the sound basics are concerned, yep you are right, its very easy, just create the Sound object initialise and play! Use format_tone. And the utility you need for converting MIDI files can be found in Nokia Developer's Suite for J2ME. Don't try to use anything other than straight OTT data though as it just doesn't work :)
Reply With Quote

#4 Old 2003-04-01, 13:28

Join Date: Mar 2003
Posts: 2,280
Location: Israel
shmoove
Offline
Forum Nokia Champion
Thanks for the info.
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: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X 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