• 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: std::atomic and lock free algorithms with Core Audio
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: std::atomic and lock free algorithms with Core Audio


  • Subject: Re: std::atomic and lock free algorithms with Core Audio
  • From: Paul Davis <email@hidden>
  • Date: Sun, 11 Sep 2016 10:13:40 -0400



On Sun, Sep 11, 2016 at 9:09 AM, Hovik Melikyan <email@hidden> wrote:

On a second thought, mute and gain say on a mixer bus are in fact
related. If your app mutes the bus and then changes the gain you don't
want to hear the change of gain. So maybe a good implementation of a
node with mute/gain should guarantee sequential consistency, and I'm
now wondering how for example Apple's AU's deal with this.

mute, gain (and solo) have VASTLY more complex semantics than this suggests and most of the complications have nothing to do with processor-level atomicity.

remember that in all cases today, whether you write an AU or some other audio processing code, you will almost certainly be processing *blocks* of audio rather than individual samples, and so another type of atomicity that matters quite a lot is atomicity across the block rather than at the processor level. fortunately this tends to be easy to arrange - it just implies picking up target/requested values at the start of the block and using them with no possibility of changing them mid-block.
 _______________________________________________
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: 
 >std::atomic and lock free algorithms with Core Audio (From: Hovik Melikyan <email@hidden>)
 >Re: std::atomic and lock free algorithms with Core Audio (From: Ross Bencina <email@hidden>)
 >Re: std::atomic and lock free algorithms with Core Audio (From: Hovik Melikyan <email@hidden>)

  • Prev by Date: Re: std::atomic and lock free algorithms with Core Audio
  • Next by Date: MusicSequenceFileLoad Crash on iOS10 (AudioToolbox/MusicPlayer)
  • Previous by thread: Re: std::atomic and lock free algorithms with Core Audio
  • Next by thread: MusicSequenceFileLoad Crash on iOS10 (AudioToolbox/MusicPlayer)
  • Index(es):
    • Date
    • Thread