Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Real-Time Effects



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:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.