Re: extaudiofile read, stereo problem (ios)
Re: extaudiofile read, stereo problem (ios)
- Subject: Re: extaudiofile read, stereo problem (ios)
- From: Gregory Wieber <email@hidden>
- Date: Thu, 23 Feb 2012 09:04:26 -0800
Hi,
I actually looked at that example code (noticed you linked to it a while ago when someone was asking about ExtAudioFileRead) and it looks like they're reading as integers and dividing to get floating point values for each sample.
They're also reading packed (interleaved).
Thanks,
Greg
On Thu, Feb 23, 2012 at 5:16 AM, tahome izwah
<email@hidden> wrote:
We're using the EAFRead.mm class from the Dirac example code and never had any problems with it reading stereo data. Maybe that helps: http://dirac.dspdimension.com. It's in the iOS examples folder I think.
--th
2012/2/23 Gregory Wieber
<email@hidden>
Thanks Paul,
Yes, I think I need to write a small test app to remove all other possible points of interference.
Strange one though. Usually anything wrong with an asbd would cause an error. Instead, I was somehow getting duplicate data in two different buffers. At least, as far as I could tell. When I removed the second buffer I got a crash -- as expected.
It's just hard to tell what's going on since the buffer list has that variable length array, and the debugger seems to treat it as a fixed length array (even though I can access both buffers; again i'm only deducing, since if I remove a buffer it crashes...)
Anyway, I'll report back my findings to the list when I've had time to write a test.
Best,
Greg
Sent from my iPhone
On Feb 22, 2012, at 4:43 PM, Paul Davis <
email@hidden> wrote:
> On Mon, Feb 20, 2012 at 4:24 PM, Gregory Wieber <
email@hidden> wrote:
>
>> It seems like a lot of folks on the list both use and recommend ExtAudioFile
>> – someone must have something to say about this?
>
> we use it within ardour/mixbus although we only read 1 channel at a
> time (we still de-interleave, but not to two buffers).
>
> if i were a betting person, i'd wager that your bug will be discovered
> in approximately 3 .... 2 ... 1 ....
>
> --p
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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