Buffer Size in Audio Units
Buffer Size in Audio Units
- Subject: Buffer Size in Audio Units
- From: Adam Stark <email@hidden>
- Date: Mon, 26 Nov 2007 12:28:18 +0000
Hi,
I have developed an audio unit that at some point in it's processing
uses an FFT. This FFT depends on the incoming buffer size of the
audio unit. I need to initialise the FFT routine before it is used so
that is is using the correct size (e.g. 128, 256, or 512, etc). I
know that during the process method I get the variable
inFramesToProcess which tells me the buffer size but is there any
other way to find out this information outside of the process method?
I want to initialise my FFT routine in the constructor with the
initial buffer size and then if there is a change in buffer size then
I want to re-initialise it. So I guess my exact questions are:
- How can I access the buffer size outside of the process method?
- Where should I place code to re-initialise the FFT routine? In the
Reset() method?
I'd be very appreciative of any help,
Thanks,
Adam
_______________________________________________
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