Re: Sound problems (Moto KRZR K1)
Robin Chaddock <[email protected]>
| Newsgroups | gmane.comp.java.sun.kvm |
|---|---|
| Message-ID | <[email protected]> |
Concatenate all sounds into a single file, and play only sections of it (with sufficient padding between sounds to allow for delays stopping.) It requires that setMediaTime works, and isn't ideal for looping - but is often the best way of avoiding as much of the mmapi as possible. It realy is such a frustration that manufacturers are single-handedly destroying the reputation of Javas portability. Why does Sun allows them to get away with it =Z ----- Original Message ----- From: "Michael Flad" <[email protected]> To: <[email protected]> Sent: Monday, September 03, 2007 1:49 PM Subject: AW: Sound problems (Moto KRZR K1) Hi Ben, thanks for your reply. I've been in J2ME sound hell for years so I know what you're talking about and we already use multiple implementations like SamsungAPI VSCL Nokia MMAPI MMAPI running in it's own thread And within these versions there are differences like loading one or multiple files, prefetch or not, manual loop or use MMAPI looping, fixed volume/VolumeControl etc. In the past I always got a reasonable working version after some time of tweaking and testing but this new Moto is driving me crazy - delays of almost half a second do help a little but it's not a real solution (i.e. the problem might only appear after playing for a few minutes). What I usually do is - I try some Gameloft games on the handset and if there's a way to play sounds fast, they find it and use it - and they did it :-) Seems like there's just something about MMAPI I missed / didn't require in the past ... Any other idea? Michael > -----Ursprüngliche Nachricht----- > Von: A mailing list for KVM discussion > [mailto:[email protected]] Im Auftrag von Ben Hutchison > Gesendet: Montag, 3. September 2007 13:49 > An: [email protected] > Betreff: Re: Sound problems (Moto KRZR K1) > > Hi Michael, > > In general, sound is a buggy part of J2ME, in my expereince. > What you describe sounds rather typical. > > We have had problems with MIDI sounds not playing or crashing > the handset on several phones from Motorola, Nokia and Samsung. > > Trying to play too many sounds in quick succession definitely > leads to trouble. I suggest you ensure there's some pause > after the last sound has finished before you try to play another. > > We abandoned keypress-triggered MIDI sound effects because of > audio problems, and went with background music instead, which > starts much less often. Even that doesnt work on some phones. > > -Ben > > Michael Flad wrote: > > >Hi all, > > > >how did you all implement sound on the Moto K1? > > > >All my non threaded MMAPI implementations seems to crash my > app quite > >fast. My current project plays sounds for some keypressed > events and it > >only takes 5-10 fast keypresses. > >But note that my player doesn't start or stop more than one > sound per > >frame - so it's not creating multiple MMAPI players per frame. > > > >I tried my threaded implementation too - doesn't crash anymore but > >after a few played sounds I can't start another anymore - doesn't > >matter if I use the same player or a new one with another soundfile. > > > >At the moment I only use Midi files. > > > >I appreciate any idea - I do not have any other of the new Moto > >handsets but I guess that a group of the newer ones might > have the same > >problem? > > > >Thanks, > >Michael > > > >============================================================= > ========== > >==== To unsubscribe, send email to [email protected] and > include in > >the body of the message "signoff KVM-INTEREST". For general > help, send > >email to [email protected] and include in the body of > the message > >"help". > > > > > > > > > > > -- > Ben Hutchison > > Lead Developer > Playscape Games > http://www.playscapegames.com > > ============================================================== > ============= > To unsubscribe, send email to [email protected] and > include in the body of the message "signoff KVM-INTEREST". > For general help, send email to [email protected] and > include in the body of the message "help". > =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff KVM-INTEREST". For general help, send email to [email protected] and include in the body of the message "help". ________________________________________________________________________ E-mail is an informal method of communication and may be subject to data corruption, interception and unauthorised amendment for which I-play, a trading name of Digital Bridges Ltd will accept no liability. Therefore, it will normally be inappropriate to rely on information contained on e-mail without obtaining written confirmation. This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. (C) 2005. I-play is a trademark and trading name of Digital Bridges Limited. All Rights Reserved. ________________________________________________________________________ This message has been checked for all known viruses by the MessageLabs Virus Scanning Service. For further information visit http://www.messagelabs.com/stats.asp =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff KVM-INTEREST". For general help, send email to [email protected] and include in the body of the message "help".