• 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: ChannelMap and SampleRate change weirdness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ChannelMap and SampleRate change weirdness


  • Subject: Re: ChannelMap and SampleRate change weirdness
  • From: Doug Wyatt <email@hidden>
  • Date: Thu, 17 Jun 2004 11:37:13 -0700

Robert,

On Jun 17, 2004, at 6:15, Robert Grant wrote:
Something bizarre is going on in Rax.

No matter how many channels I ask for when configuring my input AUHAL AudioUnitRender tells me that it has just two channels (this used to work before I'm sure of it.??? !!!)

How many channels does the device have?

Are you speaking of the number of buffers in the buffer list returned by AudioUnitRender?

What are the input and output stream descriptions for bus 1?

After changing the sample rate from 44.1 to something else (and reinitializing everything) AudioUnitRender tells me -10863 CannotDoInCurrentContext.

What are the possible reasons an AUHAL would return this error? The only thing I can think of is that it is being asked to do a sample rate conversion - but I've set the device to be the new sample rate before initializing the AUHAL Or perhaps it thinks it's being called from the wrong thread? But it's on the main graph render thread.

It has to be getting called on the device's IOProc thread for the exact same number of samples that were supplied by the IOProc. If element 1's input and output sample rates do not match, you will get a sample rate conversion and this will result in the -10863 error.

Doug
_______________________________________________
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.


  • Follow-Ups:
    • Re: ChannelMap and SampleRate change weirdness
      • From: Robert Grant <email@hidden>
References: 
 >ChannelMap and SampleRate change weirdness (From: Robert Grant <email@hidden>)

  • Prev by Date: Re: Paremeter changes by the user
  • Next by Date: Re: Lost cycles - VST vs. AU
  • Previous by thread: ChannelMap and SampleRate change weirdness
  • Next by thread: Re: ChannelMap and SampleRate change weirdness
  • Index(es):
    • Date
    • Thread