• 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: Wed, 17 Dec 2008 11:30:12 -0800

I'd fill out all of the fields - you definitely need to have the mDataByteSize field set

On Dec 17, 2008, at 12:09 AM, Mike Kluev wrote:

On Tue, 16 Dec 2008 10:53:40 -0800 William Stewart <email@hidden> wrote:

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.

BTW, I do not fill the whole struct like it is done in AUOutputBL. All the
fields are zeroed except for the mNumberBuffers field and it works ok.
Is that not correct? I do this:


AudioBufferList10 buffer = {};

buffer.mNumberBuffers = isInterleaved ? 1 : numChannels;

OSStatus err = AudioUnitRender(unit, flags, timeStamp,
 busNumber, numberFrames, (AudioBufferList*)&buffer);

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
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>)
 >Re: *Interleaved* input with AUHAL? (From: William Stewart <email@hidden>)
 >Re: *Interleaved* input with AUHAL? (From: "Mike Kluev" <email@hidden>)

  • Prev by Date: PlaySoftMidi change instrument
  • Next by Date: Re: PlaySoftMidi change instrument
  • Previous by thread: Re: *Interleaved* input with AUHAL?
  • Next by thread: Where is MusicDeviceMIDIEvent() documentation?
  • Index(es):
    • Date
    • Thread