Re: getting host tempo in an Audio Unit
Re: getting host tempo in an Audio Unit
- Subject: Re: getting host tempo in an Audio Unit
- From: Artemiy Pavlov <email@hidden>
- Date: Sun, 27 Aug 2006 00:15:17 +0300
Hello Stiwi!
Oh damn, this is a little overcomplicated for me :-(
My C++ is very poor unfortunately... I code in C mainly, and all that
object stuff is very alien to me. I just do not know how to
"initialize my kernel with a pointer to the mParentObject" (I don't
even think I formulated this phrase right ;-)))).
Thanks a lot again,
Artemiy.
On 26 Aug 2006, at 10:40 PM, stiwi wrote:
Hi again,
If you are within a kernel process() call make sure that you
initialized your kernel with a pointer to your parent object
like in the AuPulseDetectorKernel example code. Then you can use
that pointer to access the callback like this.
Float64 bpm;
OSStatus err = mParentObject->CallHostBeatAndTempo(NULL, &bpm);
_______________________________________________
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