Re: Audio Unit Initialization
Re: Audio Unit Initialization
- Subject: Re: Audio Unit Initialization
- From: Marc Poirier <email@hidden>
- Date: Sat, 20 Mar 2004 13:22:20 -0500 (EST)
I don't think that you can do what you're wanting to do. Or, what I think
you want to do. Is it that you want to be able to tell the host when you
want to be Uninitialized and then re-Initialized or something like that?
Can you just allocate the maximum size for these buffers during Initialize
and then simply use what you need while rendering according to whatever
the parameter settings are at the moment? That's what I do in this sort
of situation.
There's another issue, though, which is that probably I'm guessing that
these parameters are also going to affect latency, right? In that case,
you will also want to send out PropertyChanged notification each time that
changes. I wouldn't expect most hosts to actually be able to re-adapt to
the new latency while in the midst of audio rendering (maybe after the
next stream interruption of some sort), but that's what you should be
doing on your end.
I hope that I've understood your questions correctly, but I'm not sure,
this might all be way off base...
Marc
On Fri, 19 Mar 2004 email@hidden wrote:
>
Dear List,
>
>
I think I have a basic misunderstanding on setting up an audio unit.
>
>
If I have a situation where my audio unit has a large setup (initializing lookup
>
tables, multiple buffers, etc), but I want some of these parameters to be user
>
defineable (i.e. FFT Size, Vector Size), how do I make these setup options
>
available? Currently all of my user variables are running at audiorate with
>
gui listeners. I'd really like a way to "stop" the audio processing while I
>
re-setup some factors so I don't kill the system.
>
>
Basically I want something like an "Initialization List" option...
>
>
This may be part of a larger misunderstanding. Any help would be very
>
apperciated.
>
>
Kind Regards,
>
Robert Ferguson
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.