User-supplied files as AU parameters
User-supplied files as AU parameters
- Subject: User-supplied files as AU parameters
- From: "Chris Liscio" <email@hidden>
- Date: Wed, 21 Mar 2007 12:54:10 -0400
I am developing a convolution AU to complement a future release of
FuzzMeasure, and have a prototype that's working quite well. However,
there's a pretty big limitation in that my AU loads its impulse
response from a file stored in a fixed path.
I would like to allow the user of my AU to supply the IR file in the
AU's UI, but I'm unsure about how I should approach this.
There are two problems here:
1. How do I transmit the file from the Cocoa UI to the kernel? I'm
pretty sure this will probably just require a custom parameter with a
string, but after seeing the FilterDemo AU which transmits a frequency
response to Cocoa land, I'm not totally sure that's the right
approach. For instance, what if the file has moved? Should I
maintain a ~/Library/Application Support/ subdirectory for my AU?
2. Right now, the IR is preprocessed (moved to the frequency domain,
buffers allocated, etc) in the kernel's constructor. From what I
gather, this is the right place to put heavyweight initialization
code. However, if the IR were to change, I'd have to do this all over
again. Since the kernel's constructed once upon insertion (as far as
I can tell), this is probably not the correct place to do this.
Any help/guidance would be much appreciated.
Cheers,
Chris Liscio
http://www.supermegaultragroovy.com
_______________________________________________
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