How to decode mData in AudioBuffer?
How to decode mData in AudioBuffer?
- Subject: How to decode mData in AudioBuffer?
- From: lbland <email@hidden>
- Date: Thu, 27 Apr 2006 09:05:05 -0700
hi-
I want to get to the values from a microphone. I got all the way down
to retrieving a AudioBufferList and thus AudioBuffer struct which
contains the data, but the actual values are encoded in mData:
typedef struct AudioBuffer {
UInt32 mNumberChannels;
UInt32 mDataByteSize;
void* mData;
} AudioBuffer;
Is there a way to decode mData? Either directly or via a function
that parses it into a known array type?
for example:
(UInt16 *) mData)[3]
for the 4th sample value in the buffer segment? (or (UInt16 *) mData)
[7] for the 2nd channel 4th sample value in a interleaved stereo
buffer, etc.
thanks!-
-lance
_______________________________________________
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