这是下面的代码,用于在 c# 中记录和设置波形文件格式。
mciSendString("open new type WAVEAudio alias recsound", "", 0, 0);
mciSendString("set capture time format ms bitspersample 16 channels 1 samplespersec 8000 bytespersec 192000 alignment 4", "", 0, 0);
mciSendString("record recsound", "", 0, 0);
但这不起作用。