Hello, I have successfully made an app that does -almost- exactly what I want. In a sense I want the UIButtons to trigger like a synthesizer (or sampler, rather), by which the sound file that is played will play for the as long or short as the user holds the button. How I have it set up now is using AudioServicesPlaySystemSound on the Touch Down event from the buttons. This works great, there is very little/no latency between tapping the button and getting the sound to play. However it triggers the whole sample, and I would like it to stop playing as soon as the user lifts their finger from the button. Symbiotically, I only want one sound playing at a time. I have looked through the documentation and have yet to find anything in the SystemSounds that calls Stop or Pause. I have chosen SystemSounds for how quickly it can respond to touches. I understand there are a couple other frameworks to play sounds, but I've read those induce some latency in calling multiple sound files. The files I'm working with will be no longer than 4 seconds a piece, CAF format. I am open to using different formats, as well as rewriting my code to get this properly implemented. Thank you all in advance! I have already learned so much just from reading the subscription.
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. Get busy.
|