• 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
AudioConverterFillComplexBuffer and complex buffers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioConverterFillComplexBuffer and complex buffers


  • Subject: AudioConverterFillComplexBuffer and complex buffers
  • From: Michael Thornburgh <email@hidden>
  • Date: Wed, 31 Mar 2004 15:35:59 -0800

i don't see a way to use an AudioConverter to transform, for example, an AudioBufferList of 4 mono streams (like you might have in de-interleaved land working with some audio units) into an AudioBufferList with two streams of interleaved stereo, like you might get in an IOProc for some device.

i've done some experiments, and it looks like when you use AudioConverterFillComplexBuffer, having set the output format to interleaved, and pass in an ABL with mNumberBuffers set to more than one, it returns -50, which i guess is "paramErr". setting the converter's output to interleaved, but not having mNumberBuffers be at least the requested number of channels, just crashes.

so the question is: can an AudioConverter be made to do what i want? i have my own interleaver/de-interleaver, but i'd rather use one provided by Apple Buddies if one exists. and clearly, something exists somewhere, since (presumably) the Output Audio Unit can format audio for such a device.

-mike
_______________________________________________
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: AudioConverterFillComplexBuffer and complex buffers
      • From: James McCartney <email@hidden>
    • Re: AudioConverterFillComplexBuffer and complex buffers
      • From: Michael Thornburgh <email@hidden>
  • Prev by Date: RE: Looking for someone with Obj-C...
  • Next by Date: Re: AudioConverterFillComplexBuffer and complex buffers
  • Previous by thread: Re: Looking for someone with Obj-C...
  • Next by thread: Re: AudioConverterFillComplexBuffer and complex buffers
  • Index(es):
    • Date
    • Thread