我正在通过 winmm.dll 的 DllImport 使用 MCI 创建记录器:mciSendString。
我能够记录并保存它。我想在保存之前对其进行一些处理,但我没有找到任何正确的方法、方法、技巧来在录制过程中获取缓冲区(同样,没有先保存到 WAV 文件)?
任何想法?
mciSendString("open new type waveaudio alias recsound", null, 0, IntPtr.Zero);
mciSendString("record recsound", null, 0, IntPtr.Zero);
//Would like to get the buffer here
mciSendString("pause recsound", null, 0, IntPtr.Zero);
//or here