Taming SoundEngine Processor Utilization
Wednesday, July 22nd, 2009Excerpt: (Read the full post »)
Here’s a simple modification to SoundEngine that cures performance problems with looping effects having long preambles (or attack buffers.)
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Always Connected!
Your information: Anywhere, Anytime!
Freedom to Be Mobile!
Elegant Mobile Solutions!
Games On the Go!
You're the Person in Personal Computing!
Computing Power for People!
Here’s a simple modification to SoundEngine that cures performance problems with looping effects having long preambles (or attack buffers.)
The iPhone SDK has a rich set of support services for playing audio. Sometimes the challenge is selecting the best fit for a particular situation.
One of the most interesting challenges that I ran into in our sound heavy application (still waiting App Store approval) was figuring out how to play a second, third, etc. instance of a sound while the original was still playing.
Who would have imagined that getting the sound to work even close to the way that we wanted would be much harder than writing the app? Maybe I can help you avoid some of the pitfalls.