• 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
Re: notifying the UI from the process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: notifying the UI from the process


  • Subject: Re: notifying the UI from the process
  • From: Marc Poirier <email@hidden>
  • Date: Thu, 26 Jan 2006 07:57:35 -0500

On Jan 26, 2006, at 1:00 AM, Peter Thom wrote:

I'm having problems notifying the UI from my process function.
I initialized a parameter listener, but when I call following functions, it never reaches my listener proc:


AUParameterSet(NULL, NULL, &_messengerParam, value, 0);
AUParameterListenerNotify(NULL, NULL, & _messengerParam);	

am I doing something wrong?

Who knows. Most of your relevant code is missing from the above code snippet. How do you initialize _messengerParam? How and when do you install your parameter listener? How do you handle your parameter listener callback? Etc.




On Jan 26, 2006, at 7:06 AM, Nik Reiman wrote:

Huh, this is funny. I was about to post this exact same problem to the list last night, but decided to sleep on it and see if a solution came to me (it didnt'). Also, does anybody know how one might get a pointer to the UI from the actual audio unit?

Don't. That assumes at least a couple of things that you can't necessarily rely on (that there is only one UI component loaded for a given AU instance, that the UI and the AU are in the same address space, etc.). There's much in the list archives about this, and appropriate ways to handle what you need to do. There also was a thing at the CoreAudio Swiki about it, but that site seems to be always down (does anyone know if it moved, or the information is still available anywhere?).


I'm afraid that using a parameter listener won't quite hack it for me, because getting a C callback routine won't have access to the class data I need to send to the GUI....

You pass a pointer to the class that you need access to as the void* "object ref" thing (or whatever they call it for the listener install function).



Marc _______________________________________________ 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
  • Follow-Ups:
    • CoreAudio Swiki [was: Re: notifying the UI from the process]
      • From: Chandrasekhar Ramakrishnan <email@hidden>
References: 
 >Did GarageBand stop playing? (From: Daniel Jalkut <email@hidden>)
 >Re: Did GarageBand stop playing? (From: kelly jacklin <email@hidden>)
 >Re: Did GarageBand stop playing? (From: Daniel Jalkut <email@hidden>)
 >Re: Did GarageBand stop playing? (From: William Stewart <email@hidden>)
 >notifying the UI from the process (From: Peter Thom <email@hidden>)

  • Prev by Date: Subject: Re: notifying the UI from the process
  • Next by Date: Re: Bug in saving user presets
  • Previous by thread: Re: notifying the UI from the process
  • Next by thread: Re: notifying the UI from the process
  • Index(es):
    • Date
    • Thread