使用 IAudioCaptureClient 如何记录立体声音频数据?

How is stereo audio data recorded using IAudioCaptureClient?

我正在使用 Microsoft 的 Core Audio API 从桌面线路输入录制立体声音频。它以 44100Hz,32 位记录。我想知道立体声数据是如何记录到缓冲区中的,比如前 32 位是一个麦克风,接下来的 32 位是第二个麦克风还是其他什么?Here is the code I used to record audio

通常通道是交错的。所以你的缓冲区应该是这样的:[left 16 bits][right 16 bits][left 16 bits][right 16 bits] ... [left 16 bits][right 16 bits].