some audio problems

by [EMAIL PROTECTED] » Mon, 03 Nov 2008 13:40:26 GMT


Sponsored Links
 dear all,

I've been writing a game and need to play an audio effect with some
event trigged,
and i use MediaPlayer class and mp3 source files to implement it.

i first create the MediaPlayer instance in the constructor and invoke
play() when the event is trigged.

but it happened again oftentimes to show the warning message in the
DDMS

obtainBuffer timed out (is CPU pegged?) user=00000101, server=00000001
write blocked for XX msecs

these two message,  the sound would still played, but delayed, so the
sound and visual  effect won't synchronized.

please give some commons to help, thanks!

--~--~---------~--~----~------------~-------~--~----~



some audio problems

by Dave » Tue, 04 Nov 2008 04:09:50 GMT


 It's likely that the CPU is saturated and can't keep up with audio. If
you have a choice, I suggest using OGG files because there is less
overhead involved in playing them.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


some audio problems

by Robert Green » Tue, 04 Nov 2008 05:24:39 GMT


 For games use small, low bitrate OGGs with SoundPool.




--~--~---------~--~----~------------~-------~--~----~



some audio problems

by Dave » Tue, 04 Nov 2008 08:59:38 GMT


 SoundPool is not recommended in 1.0. There are deadlock issues that
can cause your app thread to lock up.





--~--~---------~--~----~------------~-------~--~----~



some audio problems

by [EMAIL PROTECTED] » Tue, 04 Nov 2008 09:39:49 GMT


 thanks a lot, I'll keep trying with that stuff!






--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Filtered ListView with custom Adapter derived from ArrayAdapter is not updated

Hi,

What exactly are you trying to do? Can you please explain?

Thanks and Regards,
Kumar Bibek




-- 

2. how to get sudoku source coed

HI Every One

I m new to the android development. I interested to learn android much
n munch. I want to know where I will get source code of sudoku and how
to build in eclipse. Please help me,

Thank You

-- 

3. Help In graduation Project

4. Problem reading the Stencil buffer using glReadPixels() (for picking)

5. Will there be any more Android Develop Labs in the future?

6. How to access the build-in wallpaper gallery?

7. dynamically textline in SimpleAdapter