• 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
AudioBufferList configuration when rendering from AUHAL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioBufferList configuration when rendering from AUHAL


  • Subject: AudioBufferList configuration when rendering from AUHAL
  • From: Pierre Pasquet <email@hidden>
  • Date: Wed, 28 Feb 2018 23:48:40 +0000

Hi All,

I have posted a question on stack overflow
(https://stackoverflow.com/questions/49038140/audiobufferlist-for-auhal-unit-whose-output-stream-format-is-compressed

<https://stackoverflow.com/questions/49038140/audiobufferlist-for-auhal-unit-whose-output-stream-format-is-compressed>)
 but since CoreAudio isn’t that popular I thought it would be worth it to ask
it here as well.

To make it short (even if it’s not that easy in this case), I’d like to record
audio from an input device using au AUHAL, encode it into AAC format and write
to a file (.caf at the moment). So the input scope of the AUHAL reads data in
LPCM and output scope should render AAC (everything in bus 1).

However, I have an error when rendering (AudioUnitRender returns -50). I really
don’t know what I’m doing wrong. My audio stream is in stereo so I allocate two
AudioBuffer but it doesn’t seem to work.

Anyway, everything is explained in more detail in the stack overflow question.
Would be great if you could have a look at it and answer me either here or on
the post to give a better visibility.

Thanks !
Best,
Pierre 
 _______________________________________________
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: AudioBufferList configuration when rendering from AUHAL
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: Any system calls OK to use in audio thread?
  • Next by Date: Re: AudioBufferList configuration when rendering from AUHAL
  • Previous by thread: Re: Any system calls OK to use in audio thread?
  • Next by thread: Re: AudioBufferList configuration when rendering from AUHAL
  • Index(es):
    • Date
    • Thread