Recognize signature change with CallHostMusicalTimeLocation
Recognize signature change with CallHostMusicalTimeLocation
- Subject: Recognize signature change with CallHostMusicalTimeLocation
- From: tobias assmann <email@hidden>
- Date: Mon, 15 Dec 2008 15:16:03 +0000 (GMT)
Hello all,
I am really wondering what I might be doing wrong. I wanna catch the change of a signature within the render function of my plugin. This is the code I use:
// Remember old signature
signatureNumeratorReminder = (UInt32)outTimeSig_Numerator;
// Get the actual signature
if (CallHostMusicalTimeLocation(NULL,&outTimeSig_Numerator, &outTimeSig_Denominator,NULL) != noErr){
printf("Error reciving signature information from Host!\n");
return kAudioUnitErr_NoConnection;
}
// Call view to generate new layout if signature has
changed
if(signatureNumeratorReminder!=(UInt32)outTimeSig_Numerator){
Globals()->SetParameter(kSignatureParam, (float)outTimeSig_Numerator);
if(AUParameterListenerNotify(NULL, NULL, ¶meter[1])!=noErr){
printf("Could not notify UI about parameter change!");
return kAudioUnitErr_NoConnection;
}
}
The code works when the plugin starts up and the initial signature is recognized correctly. But this keeps staying in outTimeSig_Numerator and outTimeSig_Denominator forever. No changes are recognized.
Am I wrong at some point? Or is this information not updated within a project (logic in this case)?
Any help
would be appreciated!
Tobias
_______________________________________________
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