-
Is it possible to send system audio using SendAudio Source Code? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
I have found that by using Stereo Mix in windows or by installing a virtual audio driver we can share system audio. Is there any alternative way to share system sound, I am asking this because in some system stereo mix will not be available. Is it possible to capture sound using C# program and send it via WebRTC? |
Beta Was this translation helpful? Give feedback.
-
One approach to this would be using WasapiLoopbackCapture from the NAudio library. https://github.com/naudio/NAudio/blob/master/Docs/WasapiLoopbackCapture.md |
Beta Was this translation helpful? Give feedback.
-
@DavidMartynWood, thank you for your response. I've reviewed the NAudio documentation, but I'm having difficulty figuring out where to begin with the implementation. Specifically, I'm looking for guidance on how to start or which aspects I should prioritize when integrating NAudio into the
|
Beta Was this translation helpful? Give feedback.
-
@DavidMartynWood AudioExtraSources.cs
|
Beta Was this translation helpful? Give feedback.
-
I'm sorry but audio lag is really hard to diagnose without more context. I've spent days looking through my own code in the past trying to figure out things like that. A few things to consider:
If you could try to be more specific about the audio symptoms it might help, but that might be wishful thinking on my part. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation. In my code AudioSourceEnum is just used to tell the program that it want to get System Audio. It is just condition. It has nothing to do with codec and other settings. This is the settings for Sample Audio
with this I get breaking audio with some noise in the background. I set all the numbers to 90 and I got continuous audio but there is some background noise. This is my loop back capturer code
in this code |
Beta Was this translation helpful? Give feedback.
-
I have implemented WasapiLoopbackCapture via SipsorceryMedia.Windows. |
Beta Was this translation helpful? Give feedback.
I have implemented WasapiLoopbackCapture via SipsorceryMedia.Windows.