Re: Still trying to write buffers to audio file.
Re: Still trying to write buffers to audio file.
- Subject: Re: Still trying to write buffers to audio file.
- From: Christian Rober <email@hidden>
- Date: Thu, 14 Jan 2016 13:07:26 -0500
Hello Alexander,
From briefly looking at your code sample(s), two possible things:
1) You probably need to set the "client" ASBD on the ExtAudioFileRef. This is done via the kExtAudioFileProperty_ClientDataFormat property. This tripped me up when I first used this API; I had thought that the ASBD used when creating the ExtAudioFile object was enough to get it working but I was incorrect.
2) You will want to call ExtAudioFileWriteAsync with your file reference, 0 and nil for the latter arguments BEFORE you actually pass audio data to that function in your RT thread (this is because the first call may do some allocations and you don't want to do that in an RT thread, look at the fine print in the header for more info).
--Christian
_______________________________________________
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