我正在开发一个使用扩展音频文件服务的iPhone应用程序。我尝试使用ExtAudioFileRead读取音频文件,并将数据存储在AudioBufferList结构中。ExtAudioFileRead和AudioBuffer for iPhone SDK问题
AudioBufferList被定义为:
struct AudioBufferList {
UInt32 mNumberBuffers;
AudioBuffer mBuffers[1];
};
typedef struct AudioBufferList AudioBufferList;
和AudioBuffer被定义为
struct AudioBuffer {
UInt32 mNumberChannels;
UInt32 mDataByteSize;
void* mData;
};
typedef struct AudioBuffer AudioBuffer;
我想操纵MDATA但我不知道什么是无效*意思。为什么它无效*?我怎样才能决定实际存储在mData中的数据类型?