kAudioUnitProperty_Latency property changes and Logic
kAudioUnitProperty_Latency property changes and Logic
- Subject: kAudioUnitProperty_Latency property changes and Logic
- From: Howard Moon <email@hidden>
- Date: Tue, 31 May 2016 13:56:11 -0700
Our software allows users to change the latency associated with the Audio Unit plug-in, but it seems that Logic is ignoring this change. I have looked all over, and found others reporting this problem a few years ago, but I don’t see a resolution anywhere. Here is the code we’re using:
AudioUnitEvent auEvent; auEvent.mArgument.mProperty.mAudioUnit = GetComponentInstance (); auEvent.mArgument.mProperty.mPropertyID = kAudioUnitProperty_Latency; auEvent.mArgument.mProperty.mScope = kAudioUnitScope_Global; auEvent.mArgument.mProperty.mElement = 0; auEvent.mEventType = kAudioUnitEvent_PropertyChange; AUEventListenerNotify (paramListenerRef, NULL, &auEvent);
I did find one thread that said they got it working, but it didn’t elaborate as to exactly *how* they accomplished it other than a very general statement:
Finally found it. So, you need to manage list of property listeners, and whenever this happens ask all property listeners. Ugly, but I spent some time looking into the horrible CoreAudio SDK and that's how they do it...
I’m just not sure exactly how that would be accomplished.
Does anyone know how to get this to work in Logic (and any other hosts that seem to ignore the AUEventListenerNotify() call above)? Got a code snippet?
Thanks, -Howard
|
_______________________________________________
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