• 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: Trouble recording using the AUHAL unit.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble recording using the AUHAL unit.


  • Subject: Re: Trouble recording using the AUHAL unit.
  • From: Paul Davis <email@hidden>
  • Date: Mon, 11 Jan 2016 07:36:55 -0500



On Mon, Jan 11, 2016 at 2:08 AM, Alexander Bollbach <email@hidden> wrote:

I am trying to record small chunks of PCM for this beat making app I'm writing and so I figured it would be easy enough to just do AudioFileWriteBytes in this callback and multiply the number of frame with how many bytes per frame and just write it but the file winds up being a garbled mess.

You cannot do file i/o from a render callback or anywhere else in the realtime audio thread(s).

Please read this, which isn't about audiounits but is about realtime audio programming.

http://www.rossbencina.com/code/real-time-audio-programming-101-time-waits-for-nothing

 _______________________________________________
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: Trouble recording using the AUHAL unit.
      • From: Alexander Bollbach <email@hidden>
References: 
 >Trouble recording using the AUHAL unit. (From: Alexander Bollbach <email@hidden>)

  • Prev by Date: Trouble recording using the AUHAL unit.
  • Next by Date: Re: Trouble recording using the AUHAL unit.
  • Previous by thread: Trouble recording using the AUHAL unit.
  • Next by thread: Re: Trouble recording using the AUHAL unit.
  • Index(es):
    • Date
    • Thread