Hi, I play sound asynchronously (in a separate thread). The first thing I do is query the duration of the sound clip ie how many miliseconds, then I play the sound clip & keep the thread running for at least the duration of the clip. That way the sound is not 'cut off' before it has finished playing.
Regards On Nov 27, 8:06 am, Morten Frederiksen <mort...@gmail.com> wrote: > I am attempting to make some high quality notification sounds, but when the > sounds are played they are not played entirely. Playback cuts off near the > end of the sound so the notification sound ends prematurely and abruptly. > > When played through the media player on the phone, the sound is played > entirely, so the file format is not corrupt. > > I have tried various formats including Ogg Vorbis (16 bit PCM, 48 kHz, 320 > kb/s) which seems to working for the vendor supplied notification sounds on > the phone. > > Adding extra silence at the end of the file does not always work, and is a > clumsy workaround at best. > > Hope someone can shed some light on this problem. > > Regards, > Morten -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en