Re: iPhone dev- playing sounds defined by the duration of the tap
Re: iPhone dev- playing sounds defined by the duration of the tap
- Subject: Re: iPhone dev- playing sounds defined by the duration of the tap
- From: Marc Vaillant <email@hidden>
- Date: Thu, 22 Apr 2010 13:13:16 -0400
- Mail-followup-to: email@hidden, Christopher Hansson <email@hidden>
On Apr 21, 2010, at 11:54 AM, Christopher Hansson wrote:
>
>
> 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.
Your best bet will be to use the RemoteIO AudioUnit. You write a
callback function that is continually called by the audiounit to fill a
buffer. The buffer size can be very small, so you can disrupt the
playback will small latency. Please see one of my previous posts where
I have posted some code:
http://lists.apple.com/archives/coreaudio-api/2008/Dec/msg00173.html
If you want to see an app where I use this: http://iditdahtext.com
Best,
Marc
kb1ooo
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden