• 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: AUGraph deadlocks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AUGraph deadlocks


  • Subject: Re: AUGraph deadlocks
  • From: patrick machielse <email@hidden>
  • Date: Sat, 03 Dec 2011 21:40:53 +0100

Op 3 dec. 2011, om 21:02 heeft Kyle Sluder het volgende geschreven:

> On Fri, Dec 2, 2011 at 6:04 PM, Brian Willoughby <email@hidden> wrote:
>
>> I would say that the bigger question is why you're trying to change
>> parameters or manipulate the graph from within the rendering callback.
>>
>
> This is a chicken-and-egg discussion. It sounds like Patrick is doing
> this because nobody told him it was a bad idea, and he's now asking
> for clarification on that point. We certainly can't blame him for not
> reading the documentation.

At the moment I've changed my code to store references to the AudioUnit instances instead of AUNodes. This seems to work so far (no deadlocks) and also simplified the code a bit at the cost of a bunch of extra ivars.

To clarify: I'm not _changing_ the Graph (node-structure / layout) itself, I am however accessing and changing parameters on audio units in the graph. For instance, I set mixer and equalization values. I do this on the render thread in my render callback during kAudioUnitRenderAction_PreRender. My assumption is/was that that would be a safe time to do this.

It is entirely possible that the documentation clearly outlines a better solution and I missed it…

patrick
--
Patrick Machielse
Hieper Software

http://www.hieper.nl
email@hidden

 _______________________________________________
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:
    • Re: AUGraph deadlocks
      • From: Brian Willoughby <email@hidden>
  • Prev by Date: FYI: Opportunity to attend NAMM for CoreAudio/MIDI Developers
  • Next by Date: Re: AUGraph deadlocks
  • Previous by thread: Re: AUGraph deadlocks
  • Next by thread: Re: AUGraph deadlocks
  • Index(es):
    • Date
    • Thread