• 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
How to delay AudioQueue playing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to delay AudioQueue playing


  • Subject: How to delay AudioQueue playing
  • From: Michael Becker <email@hidden>
  • Date: Wed, 30 Sep 2009 18:06:14 +0200

Hello list, this is my first post!

I have been searching a lot on the web and in the list archives, but I have not found anything that helped me, although I guess that my question has been asked a zillion times before: I am trying to build an audio sequencer, i.e. an 8 track sequencer that plays audio samples. The concept is fairly easy: Every sample is exactly the same length, the user can only switch samples on or off for a complete duration.

I am using the AudioQueue API and I think I understand that I should use one Audio Queue for each track. So far I have managed to have two queues loop two samples synchronously. I basically stuck to the Apple documentation ("Looping audio files"). It works great, they are perfectly in sync.

Now comes the problem: How do I omit individual samples during playback? I think the solution either comes down to "playing silence" for the duration of one or more samples, or delaying the playback of the next sample for a time that is a multiple of a sample length.

On a sidenote: Is this the right way to go about this? Or should I somehow create a "main clock" that ticks and only play samples according to this "clock"? (Instead of rigorously looping the samples back to back).

Maybe I am phrasing my question the wrong way, but please bear with me as I am really new to Core Audio and Sound programming in general.

Kind regards,
Michael
_______________________________________________
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


  • Follow-Ups:
    • Re: How to delay AudioQueue playing
      • From: Steven Winston <email@hidden>
  • Prev by Date: missing AU on snow leopard
  • Next by Date: Re: Problem saving MusicSequence to MIDI file.
  • Previous by thread: Re: missing AU on snow leopard
  • Next by thread: Re: How to delay AudioQueue playing
  • Index(es):
    • Date
    • Thread