0

I am trying to write an application for capturing stereo audio. My audio input has two channels(Stereo). I am writing this audio data into a wav file. Some times these audio channels are exchanging i.e, Left becomes right and right becomes left. This is happening only if i open and close the device file or turn off the device and turn it on. And it is happening randomly. I don't want channels to be exchanged. Please suggest.

4

1 回答 1

0

存储在 wav 文件中的立体声 PCM 是 LR 格式。“L”代表左声道样本,“R”代表右声道样本。我猜您在检索或存储 PCM 时遇到了错误。也许有时您从缓冲区中的正确(正确)位置开始,有时您从第二个样本开始。没有额外的信息很难说。

于 2013-05-10T13:13:03.810 回答