为了拦截我试过的外部音频
InPort ="3756"
call.set_OutputDevice(TCallIoDeviceType.callIoDeviceTypePort, InPort.ToString());
// initialized inServer
inServer = new TcpServer(InPort);
inServer.DataReceived += inServer_DataReceived;
// In dataReceived event I tried playing a wav file
args.Buffer = File.ReadAllBytes("C:\\check.wav");
inStream.Write(args.Buffer, 0, args.Buffer.Length);
既不能听到check.wav也不能操纵传入的音频。
感谢任何帮助。
答案 0 :(得分:1)
您可以从这篇实现旧版本解决方案的文章开始。只需稍加改动即可: DirectSound Capture Using Deviare.
答案 1 :(得分:0)
IIRIC,skype需要一个非常具体的wav文件格式,所以只是尝试“标准”的wav文件是行不通的 - 抱歉,我不是一个声音专家:(
我记得在this forum post中找到了一个很好的解释,但不幸的是它看起来像interesting link is broken。
无论如何,既然我需要这些信息,我会继续尝试在其他地方找到它。
最佳
答案 2 :(得分:0)
你应该看看skypefx是如何做到的,直接从内存缓冲区中捕获流
在这里你会找到skypefx来源 http://skypefx.codeplex.com/SourceControl/changeset/view/c1fa20a91a97
从源代码中你会注意到有各种效果直接与内存缓冲区一起工作。