I get the AudioBufferList from a wav file. (The sample frequency is 44100Hz and the time length is 2 second). However, I can't get a 44100*2=88200 sample. I get a AudioBufferList which contains 512 NumberBuffers. How can I get the sample from the AudioBufferList?
Asked
Active
Viewed 92 times
1 Answers
0
u get the number of frames in file using:
AudioUnitGetProperty(<#AudioUnit inUnit#>, kAudioFilePropertyAudioDataPacketCount, <#AudioUnitScope inScope#>, <#AudioUnitElement inElement#>, <#void *outData#>, <#UInt32 *ioDataSize#>)

Moataz Hossam
- 413
- 7
- 20