audiograph 5ms fade
audiograph 5ms fade
- Subject: audiograph 5ms fade
- From: Robert Carroll <email@hidden>
- Date: Sun, 05 Jan 2014 17:11:07 -0500
Hi,
I am trying to get a 'soft' stop to an audiograph that is basically a fileplayer - mixer - io chain. Multiple fileplayer units may be connected to the mixer input buses. The audio files are predetermined, so the start of playback is not a problem, however, playback is stopped by user input which could happen at any random time. If there is still audio signal being processed, audiograph stop is too abrupt.
Something like a 5ms fade down to zero on the mixerAU output followed by calling audiograph stop, would be ideal.
I wrote a crude version based on an NSTimer scaling the mixer's output volume parameter, but the timing is not reliable. If possible, I would prefer not to have to set up a callback since I don't need to interact with the audio stream on that level for any other reason. Can this be achieved with a AudioUnitScheduleParameter call and a ramped AudioParameterEvent?
Any suggestions would be greatly appreciated.
thanks,
Robert Carroll RSM Records Toronto
|
_______________________________________________
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