• 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: How long do render callbacks have to execute?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How long do render callbacks have to execute?


  • Subject: Re: How long do render callbacks have to execute?
  • From: Brian Willoughby <email@hidden>
  • Date: Sun, 21 Aug 2011 16:13:55 -0700


On Aug 21, 2011, at 15:25, Paul Davis wrote:
On Sun, Aug 21, 2011 at 6:07 PM, Stephen Blinkhorn <email@hidden> wrote:
For future reference
and since its relevant to this discussion I'd like to ask what are the
potential problems with interleaved data and SIMD?

suppose you want to apply a particular SIMD instruction to a channel's data. each successive sample needs to be directly adjacent the previous one - SIMD has no concept of "skipping" data values.

with interleaved data, this just will not work, so you cannot use SIMD
instructions nor get the speed benefits they provide.

Exactly.

The only exceptions to this rule are incredibly simple audio processing which involves no state. e.g. if you wanted to apply the same gain to multiple channels, then you could use SIMD to scale all the samples by the same value - you'd effectively be treating the interleaved samples as if they were all one channel. You could possibly also mix two bus inputs to a single bus output, provided the channel counts on all three busses matched, but that's a rather convoluted example that might not be very useful even if it were possible.

The problem is that most interesting audio effects have some form of state. Even the simplest first order filter will need to keep each channel separate. Thus, SIMD cannot accelerate filtering of interleaved channels.

Brian Willoughby
Sound Consulting

_______________________________________________
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: 
 >How long do render callbacks have to execute? (From: Jonathan <email@hidden>)
 >Re: How long do render callbacks have to execute? (From: Brian Willoughby <email@hidden>)
 >Re: How long do render callbacks have to execute? (From: Jonathan <email@hidden>)
 >Re: How long do render callbacks have to execute? (From: Brian Willoughby <email@hidden>)
 >Re: How long do render callbacks have to execute? (From: tahome izwah <email@hidden>)
 >Re: How long do render callbacks have to execute? (From: Brian Willoughby <email@hidden>)
 >Re: How long do render callbacks have to execute? (From: Paul Davis <email@hidden>)
 >Re: How long do render callbacks have to execute? (From: Robert Bielik <email@hidden>)
 >Re: How long do render callbacks have to execute? (From: Brian Willoughby <email@hidden>)
 >Re: How long do render callbacks have to execute? (From: Stephen Blinkhorn <email@hidden>)
 >Re: How long do render callbacks have to execute? (From: Paul Davis <email@hidden>)

  • Prev by Date: Re: How long do render callbacks have to execute?
  • Next by Date: kAudioUnitSubType_Sampler
  • Previous by thread: Re: How long do render callbacks have to execute?
  • Next by thread: Re: How long do render callbacks have to execute?
  • Index(es):
    • Date
    • Thread