• 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: Answering my own question...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Answering my own question...


  • Subject: Re: Answering my own question...
  • From: William Stewart <email@hidden>
  • Date: Fri, 21 Sep 2007 19:55:20 -0700

By doing this in the render notify, you are doing this on a high- priority thread with a strict deadline - You are setting the state of an AU, and it really isn't defined how much time this property can take. So I'd not do this on the I/O thread.

Can't you set this before you call AUGraphStart?

BIll

On 18/09/2007, at 9:50 AM, Todd Blanchard wrote:

I don't believe there is another notification - but I have been wrong about this stuff before. :-)

This solution has additional benefits because it doesn't block the UI thread when configuring units - so it "looks" like the app is faster because the UI updates sooner even though the notes don't work for about another beat. Since it is a live performance app and this happens when you are switching songs, this is totally not an issue.

On Sep 18, 2007, at 2:12 AM, Brian Willoughby wrote:

I'm shooting from the hip, here, but it just seems wrong to handle this in the render notify. Isn't there a notification specific to AUGraphStart that you could use instead?


On Sep 17, 2007, at 22:48, Todd Blanchard wrote:
I ended up doing what I said - setting the state within the first render notify callback from AUGraph. Seems to work reliably.


On Sep 17, 2007, at 5:00 PM, Todd Blanchard wrote:
Definitely looks like some kind of race condition - I've just called AUGraphStart and now I'm trying to plunk in the states for the virtual instruments. Is AUStart asynchronous? Should I set a flag and do this in the first render notify callback?


_______________________________________________ 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

--
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
________________________________________________________________________ __


_______________________________________________
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


References: 
 >What does error -50 mean? (From: Todd Blanchard <email@hidden>)
 >Re: What does error -50 mean? (From: David Duncan <email@hidden>)
 >Re: What does error -50 mean? (From: Todd Blanchard <email@hidden>)
 >Answering my own question... (From: Todd Blanchard <email@hidden>)
 >Re: Answering my own question... (From: Brian Willoughby <email@hidden>)
 >Re: Answering my own question... (From: Todd Blanchard <email@hidden>)

  • Prev by Date: Re: Logic 8 and multichannel plugs
  • Next by Date: Re: SetParameter
  • Previous by thread: OT midi interface
  • Next by thread: start fails to start... sometimes
  • Index(es):
    • Date
    • Thread