Hello all,
Let me ask 2 questions regarding to Audio Unit hosting on Mac, please share me some ideas / solutions...
1. Stereo Metering
I'm currently using Multi-Channel Mixer unit, and successful to get metering level from each bus's left channel:
AudioUnitGetParameter(mMixerUnit, kMultiChannelMixerParam_PostAveragePower, kAudioUnitScope_Input, 0, &value);
so wondering how can I get levels from right channel also? as it looks an element deals with a stereo pair of a bus. And this is not retrieving "summed" level, if it can do so, that's good too.
2. How to dispose the last plugin
By watching how the host app uses memory, the plugins that are loaded once and removed leave malloced memory largely. For instance, I load an effect / instrument plugin, it takes just roughly 20 - 200MB memory, after removing there is still remaining memory use of 10 - 180MB. So I mostly assume its GUI / View related things are disposed, but its core is still remaining. Is there anyway to clear and free the last used plugin completely or as much as possible?
Thanks in advance!
R-E.Div
|