• 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: AUGraphInitialize in audio thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AUGraphInitialize in audio thread


  • Subject: Re: AUGraphInitialize in audio thread
  • From: Chris Reed <email@hidden>
  • Date: Sat, 12 Apr 2003 14:18:14 -0500

On Friday, Apr 11, 2003, at 15:01 US/Central, Bill Stewart wrote:

Is there anything here we could add in the AUBase to support this?

AUBase probably doesn't need to provide any shortcut method of displaying a notification. It's just a single call for most cases. And if you want to do anything more complicated, you need access to the run loop source.

But on more general terms, I think there should be some communication with the host about this, although I'm not sure what. It would be nice to have a way for the host to indicate the best time for presenting such a message, although that is probably full of problems.

Maybe the best thing for the time being would be just to add something about this issue to the AU documentation. Defining the proper time to do your authorisation checking, and indicating to hosts that the first time they call AUInitialize() on a plug-in, a notification might appear.

And I do like the idea of an error to return from AUInitialize.

-chris




Bill

On Friday, April 11, 2003, at 11:33 AM, Chris Reed wrote:


On Wednesday, Apr 9, 2003, at 21:15 US/Central, Bill Stewart wrote:

How about:
kAudioUnitErr_NoPayNoPlay = !pay :-)

I don't know - but don't like the dialog... don't have an easy answer.

Is there a notification service that could be used for this?

To follow up on this... I played with the CFNotification service yesterday and was very pleased by the results. I definitely recommend that anyone who would be putting up a "no pay no play" alert to use CFNotifications instead of a standard alert.

In the past I was going to postpone displaying any alert or indication that the authorisation had failed until the GUI component was loaded, but CFNotifications work so well that I've switched.

Another comment: you should keep a static flag around and only display the notification once per host session.

-chris


-- mailto:email@hidden
tel: +1 408 974 4056

_______________________________________________________________________ ___
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
_______________________________________________________________________ ___
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • AU Authorization (was AUGraphInitialize in audio thread)
      • From: Bill Stewart <email@hidden>
References: 
 >Re: AUGraphInitialize in audio thread (From: Bill Stewart <email@hidden>)

  • Prev by Date: MusicSequenceSaveSMF always uses standard drum kit
  • Next by Date: Multi-out audio units
  • Previous by thread: Re: AUGraphInitialize in audio thread
  • Next by thread: AU Authorization (was AUGraphInitialize in audio thread)
  • Index(es):
    • Date
    • Thread