Re: iOS 8 ExtAudioFile AppleLossless distortion
Re: iOS 8 ExtAudioFile AppleLossless distortion
- Subject: Re: iOS 8 ExtAudioFile AppleLossless distortion
- From: "Dave O'Neill" <email@hidden>
- Date: Mon, 12 Jan 2015 15:24:06 -0800
When you read with ExtAudioFileRead, are you able to read a stereo file into two separate buffers in your AudioBufferList? I have only been able to get it to read a stereo file into one buffer (interleaved), and I wonder If your noise came from your AudioBufferList not being set up properly for interleaved. If I were you, I would verify that you are getting both left and right channels, and that they are not being mixed into one stream. Maybe listen to a file with a clear left/right distinction. The reason I suggest this is that when looked at your ASBD that you posted before I noticed that you weren't setting mBytesPerFrame and mBytesPerPacket relative to your channel count. They should be sizeof(float or SInt16) * mChannelsPerFrame.