Real-Time Effects
Real-Time Effects
- Subject: Real-Time Effects
- From: Dominic Feira <email@hidden>
- Date: Thu, 17 Feb 2005 21:54:40 -0500
I am in the middle of playing with some "real-time" effects.
Previously my code looked like this:
[ AUHAL ] ----- [Giant Ring Buffer] ---
[ Mixer ] ---- [ Encoder ] ---- [ File ]
[ Ring Buffer ] ---------
I would like to add some "real-time" effects to the audio coming in
from the AUHAL. My question is this. Should the input from the AUHAL
go into a ring buffer from which I apply the effects? Or can the
effects (AUGraph of AUs) be applied directly in the AUHAL callback? I
want to apply them in the callback, but my instincts tell me that this
isn't a good idea.
What I currently have working (without problem so far) is this:
[ AUHAL ] ------ [ Effects ] -----
[ Mixer ] ------ [ Giant Ring Buffer ] ---- [ Encoder ] ---- [
File ]
[ Ring Buffer ] ----
The second (non giant) ring buffer is audio data from a file that is
loaded ahead of time. The AUHAL callback triggers the renger on the
Mixer that pulls the data.
I think it should probably be like this
[ AUHAL ] -------- [ Ring Buffer ] ------- [ AUGraph ] ...
And then run the AUGraph in another thread.
Any comments/ ideas welcome.
Dominic Feira / Code Monkey / Ambrosia Software, Inc.
_______________________________________________
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