AU Question: Host Tempo Callback
AU Question: Host Tempo Callback
- Subject: AU Question: Host Tempo Callback
- From: Joseph Toscano <email@hidden>
- Date: Sat, 22 Mar 2008 13:34:59 -0400
Hello,
I'm writing an 'aufx' AU subclassed from AUEffectBase. Thus, I am also
subclassing AUKernelBase and implementing my own Process() method.
I'm able to get information from the host such as sample rate (by
using GetSampleRate(), defined in the AUKernelBase class), but I am
unable to get the host's tempo by using CallHostBeatAndTempo(),
defined in the AUBase class.
I am calling both of these methods from within my AUKernelBase
subclass, inside the Process() method. The actual code being used for
CallHostBeatAndTemp() is as follows:
Float64 beat, tempo;
OSResult result = mAudioUnit->CallHostBeatAndTempo(&beat, &tempo);
Where mAudioUnit is defined in AUKernelBase as the AUEffectBase object
which contains the kernel. Unfortunately, this operation always
returns a value of -1, which (according to AUBase.h) indicates that no
callback exists in the host application for retrieving this specific
information (tempo, etc). As such, the values stored in the variables
"beat" and "tempo" ending up being 0.0.
I have tried this AU inside two hosts: AU Lab, and Logic Pro 8. Both
situations yield the same result.
Any help on this matter would be greatly appreciated!
--JT
http://zhaymusic.com/
http://virheroicus.com/
_______________________________________________
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