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 intwo 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 itm_Player = new PaGa.WaveOutPlayer(device1, fmt, 16384, 3, new PaGa.BufferFillEventHandler(Filler));and that at the same time m_Player2 = new PaGa.WaveOutPlayer2(device2, fmt, 16384, 3, new PaGa.BufferFillEventHandler(Filler));
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.