Home > Forum > Record audio from mulitple deivces in WPF MVVM application

Record audio from mulitple deivces in WPF MVVM application

Nov 03, 2022
tambi wrote
Hi all!

I would like to record audio to an mp4 file from multiple audio devicies (for example from the speakers and from the mic).
var device = VideoCapture.Audio_CaptureDevices();
VideoCapture.Audio_CaptureDevice = new AudioCaptureSource("VisioForge What You Hear Source");

VideoCapture.Additional_Audio_CaptureDevice_Add($"{device.First()}");

VideoCapture.Audio_RecordAudio = true;
VideoCapture.Audio_PlayAudio = false;

device.First() represents my headphones's mic. The audio from the speakers is recorded, but not from my headphones's mic. Can you please help me how can i record both?
Reply
3 Answers
Nov 03, 2022
Roman Miniailov agent wrote
Does it worked in the Main Demo (check screenshots attached).

Also, please send logs from your code if Main Demo worked correctly, but your code doesn't produce correct file - https://www.visioforge.com/how-to-send-logs
Nov 07, 2022
tambi wrote
Can you please tell me, what do you mean under "your code doesn't produce correct file"?
Nov 07, 2022
Roman Miniailov agent wrote
I mean it should be some difference between your app code and Main Demo.
You can provide logs to help us find the difference in the SDK usage, or, provide a small test app that has this issue.