• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iPhone dev- playing sounds defined by the duration of the tap
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >iPhone dev- playing sounds defined by the duration of the tap (From: Christopher Hansson <email@hidden>)
 >Re: iPhone dev- playing sounds defined by the duration of the tap (From: William Stewart <email@hidden>)

  • Prev by Date: Anyone have luck matching VU meter ballistics
  • Next by Date: Re: Anyone have luck matching VU meter ballistics
  • Previous by thread: Re: iPhone dev- playing sounds defined by the duration of the tap
  • Next by thread: Anyone have luck matching VU meter ballistics
  • Index(es):
    • Date
    • Thread