Re: How to capture audio generated by a render callback, iOS
Re: How to capture audio generated by a render callback, iOS
- Subject: Re: How to capture audio generated by a render callback, iOS
- From: Tim Kemp <email@hidden>
- Date: Thu, 06 Dec 2012 11:59:07 -0500
It's all coming together: now I've forced the ASBD on every node, I'm no longer getting two buffers into my callback, instead just one with two channels (ie interleaved.) It now sounds as it should. It records properly too!
Joel, you are a prince among men. Thanks for your patient help; it was all down to having the correct formats as you kept driving at.
Will write this up in a blog post; judging by the number of unanswered questions on this issue I'm not the only one.
On 6 Dec 2012, at 11:48, Tim Kemp wrote:
> Yes, I did this.
>
> I also found I wasn't setting the RemoteIO ASBD properly, so the various nodes in my graph had different stream descriptions. I've now set the same ASBD on every node's input and output scopes. And... silence.
>
> On 6 Dec 2012, at 11:32, Joel Reymont wrote:
>
>> Would you, please, NOT use canonical flags and explicitly set the your
>> ASBD flags to signed, packed, native endian?
>>
>> From CoreAudioTypes.h:
>>
>> #if !CA_PREFER_FIXED_POINT
>> kAudioFormatFlagsCanonical = kAudioFormatFlagIsFloat |
>> kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsPacked,
>> kAudioFormatFlagsAudioUnitCanonical = kAudioFormatFlagIsFloat |
>> kAudioFormatFlagsNativeEndian | kAudioFormatFlagIsPacked |
>> kAudioFormatFlagIsNonInterleaved,
>> #else
>> kAudioFormatFlagsCanonical =
>> kAudioFormatFlagIsSignedInteger | kAudioFormatFlagsNativeEndian |
>> kAudioFormatFlagIsPacked,
>> kAudioFormatFlagsAudioUnitCanonical =
>> kAudioFormatFlagIsSignedInteger | kAudioFormatFlagsNativeEndian |
>> kAudioFormatFlagIsPacked | kAudioFormatFlagIsNonInterleaved |
>> (kAudioUnitSampleFractionBits <<
>> kLinearPCMFormatFlagsSampleFractionShift),
>> #endif
>>
>> --------------------------------------------------------------------------
>> for hire: mac osx device driver ninja. kernel, usb and coreaudio drivers
>> ---------------------+------------+---------------------------------------
>> http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
>> ---------------------+------------+---------------------------------------
>
_______________________________________________
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