Is it possible to have multiple scheduled playback events on a single AUAudioFilePlayer?
Is it possible to have multiple scheduled playback events on a single AUAudioFilePlayer?
- Subject: Is it possible to have multiple scheduled playback events on a single AUAudioFilePlayer?
- From: Howard Soroka <email@hidden>
- Date: Tue, 26 Apr 2016 18:59:02 -0700
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden