Manually cranking filters in TAAE 1.5?
Hi guys, I'm updating from 1.4.8 to 1.5 and my filters have stopped working!
In my app I manually instantiate three different filters in the following manner:
AEAudioUnitFilter *lpf = [[AEAudioUnitFilter alloc] initWithComponentDescription:AEAudioComponentDescriptionMake(kAudioUnitManufacturer_Apple, kAudioUnitType_Effect, kAudioUnitSubType_LowPassFilter)]; [lpf setupWithAudioController:audioController];
Rather than using the more conventional route of adding the filter to the input or to a channel, I instead manually crank one of the three filters using something like the following:
THIS->_chosenFilterCallback(THIS->_chosenFilter, THIS->_audioController, THIS->_chosenFilterProducer, (__bridge void *)(THIS), time, frames, fxBufferList);
This allows for the user to switch between the three different filters with only one filter ever using CPU cycles. It also allows me to crank the handle in the middle of my signal path and then manually merge the result back into my main stream.
With the changes in commit:
Use AUGraph for AEAudioUnit* classes
this manual cranking no longer works. There don't appear to be any console errors, but the audio stream coming out of the filter is garbled - almost as if there's some incorrect format conversion going on now.
I've started digging into to why this is, but I thought I'd ask on here in case anyone else has faced similar and solved the problem!
Thanks in advance!