Re: Audio Buffers
Re: Audio Buffers
- Subject: Re: Audio Buffers
- From: Daniel Todd Currie <email@hidden>
- Date: Fri, 10 Oct 2003 17:47:36 -0700
Ok, so I have this audio buffer and I need to convert it to a double
array to read it into my FFT. I know that most of you know the answer
to this, and it's not listed anywhere in the docs, so please just take
30 seconds to help me out... All I need is to convert an Audio Buffer
into a double array. Thanks.
// Daniel Currie
Message: 2
Date: Tue, 7 Oct 2003 04:28:22 -0700
Subject: Audio Buffers
From: Daniel Todd Currie <email@hidden>
To: email@hidden
Hi, I'm new to this, so I hope you don't mine some newbie questions...
I've just finished setting up an audio recorder, based on Kurt Revis's
example on the CoreAudio Swiki
(http://www.mat.ucsb.edu:8000/CoreAudio/13). In the IOProc I end up
with an AudioBufferList, inInputData. So I guess I can get the buffer
by using inInputData and mBuffers[0], and then I want to get the mData
from the buffer, I think... Would &inInputData->mBuffers[0].mData be
the right syntax? What sort of format is this data in? Can I just
read it into an NSData object? NSArray?
Thanks in advance for your help/time.
// Daniel Currie
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.