在C#中的两个特定外部声卡中广播直接语音消息 [英] Brodcast a direct vocal message in two specific external sound card in c#
问题描述
我种了一个大问题x天.有谁能帮我吗?
如何使用C#命令订购PC,以读取声音
同时有两个声卡.
我尝试使用此方法:
I''m planting a big problem for x days. Is anybody can help me please.
How I can order the pc with c # to read me the sound in
two sound cards at the same time.
I try with this:
private void Start()
{
PaGa.WaveFormatStream fmt = new PaGa.WaveFormatStream(44100, 16, 2);
m_Recorder = new PaGa.WaveInRecorder(-1, fmt, 16384, 3, new PaGa.BufferDoneEventHandler(DataArrived));
m_Player = new PaGa.WaveOutPlayer(device1, fmt, 16384, 3, new PaGa.BufferFillEventHandler(Filler));
m_Recorder2 = new PaGa.WaveInRecorder2(-1, fmt, 16384, 3, new PaGa.BufferDoneEventHandler(DataArrived));
m_Player2 = new PaGa.WaveOutPlayer2(device2, fmt, 16384, 3, new PaGa.BufferFillEventHandler(Filler));}
但是我如何改进它以使其成为
But how I can improve it to make it
m_Player = new PaGa.WaveOutPlayer(device1, fmt, 16384, 3,PaGa.BufferFillEventHandler(Filler));
并且同时
and that at the same time
m_Player2 = new PaGa.WaveOutPlayer2(device2, fmt, 16384, 3, new PaGa.BufferFillEventHandler(Filler));
用于1号和2号设备中的输出音频设备.
在使用整数的主函数调用中.
我需要帮助.这对我来说很重要,我还没有找到解决方法.
我通过在函数princpal中调用他的号码来管理一个特定的声卡中的声音
例如,如果我想听声卡1中的声音,我用相同的方法在parameter1中写给他,除了我放了
仅此:
for output audio device in the device number 1 and Number 2.
In the main function call with integers.
I need help. It''s very important to me and I have not found a solution.
I managed sound out in one specific sound card by calling his number in the function princpal
for example if I want to listen to the sound in the sound card number 1 I wrote to him in parameter1 with the same method except that I put
only this:
m_Recorder = new PaGa.WaveInRecorder(-1, fmt, 16384, 3, new PaGa.BufferDoneEventHandler(DataArrived))
m_Player = new PaGa.WaveOutPlayer(device1, fmt, 16384, 3, new PaGa.BufferFillEventHandler(Filler));
希望我的信息不会太长,但可以更好地解释.
I hope my message is not very long but to better explain.
推荐答案
仅供参考:
DirectShow.NET [将其用于Microsoft图形构建器 [
just for your reference:
DirectShow.NET[^]
google it for microsoft graph builder[^]
这篇关于在C#中的两个特定外部声卡中广播直接语音消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!