I want to play a short sequence of countdown clicks before the start of 
playback of a long audio file. Example, i want to play a very fast click, four 
times (similar to a metronome), then start the audio file playback. I know I 
can do the math to calculate when each click should occur from time zero, then 
schedule them for playback, each with a different delay from zero based on the 
math. Assume the click will always be shorter than the time between clicks 
(clicks will never overlap).

The long audio file will go to one input of an AUMixer, ALL of the clicks need 
to go to another input of the same mixer. In other words, I'll use two inputs 
on the mixer, one for the long audio file, the other for all of the clicks.

Ideally, I'd like to do all the math, queue up the required number of clicks 
and the audio file, each scheduled to start at the correct offset from zero, in 
one algorithm.

The click will be a single very small audio file containing exactly one click.

I already have file playback, mixing and lots more stuff working in my AUGraph.

My questions:

To play back the same very short click file, several times, at scheduled 
intervals, is there way for me to schedule them all on the same 
AUAudioFilePlayer unit at once, or would I need to dedicate a single instance 
of AUAudioFilePlayer for each click?

Is there a practical limit to the number of AUAudioFilePlayer units in a single 
graph?

Or is there another tactic I could use that make more sense and would give me 
the same effect?

Thanks in advance...


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to