• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Recognize signature change with CallHostMusicalTimeLocation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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, &parameter[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

  • Prev by Date: AUTimePitch + input notification
  • Next by Date: Non-interleaved input with AUHAL?
  • Previous by thread: Re: AUTimePitch + input notification
  • Next by thread: Non-interleaved input with AUHAL?
  • Index(es):
    • Date
    • Thread