Re: Static when playing back buffers
Re: Static when playing back buffers
- Subject: Re: Static when playing back buffers
- From: Pier <email@hidden>
- Date: Fri, 09 Nov 2012 11:31:18 +0800
hi all,
I noticed that Mr Craig Bakalian had the same problem..
Apparently the reason I have 2 buffers is that the Audio Unit returns an interleaved format. (left, right channels)
To write to a file, I can do this
AudioUnitGetProperty(mAudioUnit, kAudioUnitProperty_StreamFormat, kAudioUnitScope_Output, mBusNumber, &clientFormat, &size);
ExtAudioFileSetProperty(mExtAudioFile, kExtAudioFileProperty_ClientDataFormat, size, &clientFormat);
to set the extAudioFile to be the same format as the interleaved output of the AudioUnit. And it works producing a file recording of the mixed output from the mixer AudioUnit.
However in my case I wish to directly manipulate the buffers and save it into TPCircularBuffer for use later. I feel like I'm really close to getting this but I'm still hearing static when I pull from these buffers and put them in TPCircularBuffer and play them back later.
How can I do so? :/
Thanks.
Pier.
_______________________________________________
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