What does a audio frame contain?

前端 未结 4 779
春和景丽
春和景丽 2020-12-23 12:27

Im doing some research on how to compare sound files(wave). Basically i want to compare stored soundfiles (wav) with sound from a microphone. So in the end i would like to p

4条回答
  •  执笔经年
    2020-12-23 12:51

    I believe the accepted description to be slightly incorrect.

    A frame appears to be somewhat like stride in graphics formats. For interleaved stereo @ 16 bits/sample, the frame size is 2*sizeof(short)=4 bytes. For non-interleaved stereo @ 16 bits/sample, the samples of the left channel are all one after another, so the frame size is just sizeof(short).

提交回复
热议问题