0

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?

Hans Then
  • 10,935
  • 3
  • 32
  • 51
yikyCai
  • 21
  • 3

1 Answers1

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