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: stiwi <email@hidden>
- Date: Sun, 27 Aug 2006 10:32:51 +0200
Hi Artemiy,
sorry if i explained it the wrong way around.
Take a look at the AUKernelBase.h file. The kernel gets a pointer to the parent class and stores it in a protected member variable named mAudioUnit. If you just add something like this in your kernels process() call everything should work .
Float64 bpm; OSStatus err = mAudioUnit->CallHostBeatAndTempo(NULL, &bpm);
if (err == noErr) printf("MyKernel::Process %f\n", bpm);
As an example add this to the FilterDemo.cpp Process() call and take a look at the console output.
Cheers, stiwi
|
_______________________________________________
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