• 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: *Interleaved* input with AUHAL?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: *Interleaved* input with AUHAL?


  • Subject: Re: *Interleaved* input with AUHAL?
  • From: William Stewart <email@hidden>
  • Date: Tue, 16 Dec 2008 10:53:40 -0800

Hi Mike

That would be it - it is important that the layout of the audio buffer list matches the format. I've found it helpful to have a class that wraps this up for me, the AUOutputBL class in public utility, where it will just create an ABL for you based on the ASBD you get from an audio unit.

Thanks for posting your fix

Bill

On Dec 16, 2008, at 1:45 AM, Mike Kluev wrote:

On Tue, 16 Dec 2008 10:45:28 +0300
"Mike Kluev" <email@hidden> wrote:
On Mon, 15 Dec 2008 11:45:09 -0800
William Stewart <email@hidden> wrote:
On Dec 15, 2008, at 9:26 AM, Mike Kluev wrote:
I can set AUHAL to consume stereo+float+interleaved format for output. But not for
input. Looks like input insists on being non-interleaved. Is it correct behavior or am
I doing something wrong?

which bus, element are you trying to set these formats?
The "app" side scope of microphone bus (element 1, output scope).
The AudioUnitSetProperty succeeds (and AudioUnitGetProperty
confirms the change), but the subsequent AudioUnitRender calls
fail with paramErr, and so far I wasn't able to figure out what's wrong.
If I set non-interleaved format - everything works ok.

I fixed this by putting 1 into mNumberBuffers of the structure passed to AudioUnitRender. Prior to that there was 2 and it didn't work with interleaved samples.

Mike


_______________________________________________ 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: *Interleaved* input with AUHAL?
      • From: "Mike Kluev" <email@hidden>
References: 
 >Non-interleaved input with AUHAL? (From: "Mike Kluev" <email@hidden>)
 >Re: Non-interleaved input with AUHAL? (From: William Stewart <email@hidden>)
 >*Interleaved* input with AUHAL? [Was: Non-interleaved input with AUHAL?] (From: "Mike Kluev" <email@hidden>)
 >Re: *Interleaved* input with AUHAL? (From: "Mike Kluev" <email@hidden>)

  • Prev by Date: RE: 10.5.6 fixes the AudioQueue bugs
  • Next by Date: Re: 10.5.6 fixes the AudioQueue bugs
  • Previous by thread: Re: *Interleaved* input with AUHAL?
  • Next by thread: Re: *Interleaved* input with AUHAL?
  • Index(es):
    • Date
    • Thread