Question on ExtAudioFileRead and AudioBuffer for iPhone SDK
Posted
by backspacer
on Stack Overflow
See other posts from Stack Overflow
or by backspacer
Published on 2010-06-15T19:50:44Z
Indexed on
2010/06/15
19:52 UTC
Read the original article
Hit count: 258
I'm developing an iPhone app that uses the Extended Audio File Services. I try to use ExtAudioFileRead to read the audio file, and store the data in an AudioBufferList structure.
AudioBufferList is defined as:
struct AudioBufferList {
UInt32 mNumberBuffers;
AudioBuffer mBuffers[1];
};
typedef struct AudioBufferList AudioBufferList;
and AudioBuffer is defined as
struct AudioBuffer {
UInt32 mNumberChannels;
UInt32 mDataByteSize;
void* mData;
};
typedef struct AudioBuffer AudioBuffer;
I want to manipulate the mData but I wonder what does the void* mean. Why is it void*? How can I decide what data type is actually stored in mData?
© Stack Overflow or respective owner