Hi Alexander, I may have missed this, but is the synchronous call to ExtAudioFileWrite working? If so, maybe you could write your audio data to a thread-safe circular buffer, like Michael Tyson's TPCircularBuffer <https://github.com/michaeltyson/TPCircularBuffer>, on the audio callback thread and use libdispatch to perform the actual write?
If you haven't already, the EZRecorder <https://github.com/syedhali/EZAudio/blob/master/EZAudio/EZRecorder.m> component of EZAudio <https://github.com/syedhali/EZAudio> might be helpful/interesting to look at. Hope that helps! On Thu, Jan 14, 2016 at 10:32 AM Alexander Bollbach < [email protected]> wrote: > no one? > > On Wed, Jan 13, 2016 at 5:47 PM Alexander Bollbach < > [email protected]> wrote: > >> I am still unable to write audio samples from my AUHAL's input callback >> to a file. I have tried a number of things including using the >> asynchronous version of writing to an audio file in ExtAudioFileServices. >> Even wrapping the call in a dispatch queue in fear that it was going out of >> scope. Even though it is probably some small obvious thing that is missing >> (i'm only a few months into using core audio) I posted a stack question >> <http://stackoverflow.com/questions/34714832/writing-bytes-to-audio-file-using-auhal-audio-unit> >> about >> it. Apparently other uses have gotten the (-50) error. That is indeed >> the error I get. (you can run the GitHub Repo >> <https://github.com/AlexanderBollbach/AUHAL_Recorder> in xcode to verify >> this). I've been casually trying to get this to work over the past few >> days and I'm not getting any results. Any idea what I might be doing wrong? >> >> >> >> >> _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Coreaudio-api mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > > https://lists.apple.com/mailman/options/coreaudio-api/syedhali07%40gmail.com > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/coreaudio-api/archive%40mail-archive.com This email sent to [email protected]
