• 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
AU Authorization (was AUGraphInitialize in audio thread)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AU Authorization (was AUGraphInitialize in audio thread)


  • Subject: AU Authorization (was AUGraphInitialize in audio thread)
  • From: Bill Stewart <email@hidden>
  • Date: Sat, 12 Apr 2003 13:34:14 -0700

Let me try to summarize where we are on this.

No dialogs in AudioUnitInitialize (please!)
- preferably no UI code at all:-)

Given that, and given some cooperation from the hosts (and given that at some point your AU will just fail to initialize), and given that we will take care of the notification requirements (more on this at a later date)... what set of properties, error codes, would you guys think you'd need to deal with this?

Given the amount of pirating of audio plugins, I believe the host apps can be asked to provide some buy in to the process of helping to protect these plugins as well... So, can we - the question thus is - can we define a set of properties, err codes, that a host could then use to alert the user they have something to deal with, and that a host can also use to correctly authorise the AU?

I can think of a few, but I'd like to get your input...

Bill


On Saturday, April 12, 2003, at 12:18 PM, Chris Reed wrote:

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.


--
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.
References: 
 >Re: AUGraphInitialize in audio thread (From: Chris Reed <email@hidden>)

  • Prev by Date: Re: How to Notify parameters changes
  • Next by Date: diagnostic logging for use in audio threads?
  • Previous by thread: Re: AUGraphInitialize in audio thread
  • Next by thread: Re: AUGraphInitialize in audio thread
  • Index(es):
    • Date
    • Thread