maltejur / discord-screenaudio

A custom discord client that supports streaming with audio on Linux.
1.09k stars 35 forks source link

discord-screenaudio-virtmic randomly disappears #210

Open M0deRa1n opened 8 months ago

M0deRa1n commented 8 months ago

I've been noticing, for quite some time, that the audio from the stream randomly stops working and my friend watching the stream hears the audio from my microphone double. Today, I tried to look into it while playing a Youtube video from Firefox and checking the connections with qpwgraph. My microphone is connected to 'Chromium-input [RecordStream]' and the audio from Firefox is connected to 'discord-screenaudio-virtmic', which is also connected to 'Chromium-input 1 [RecordStream]'. What happens is that 'discord-screenaudio-virtmic' randomly disappears and my microphone latches onto 'Chromium-input 1 [RecordStream]', making my friend hear the audio from my microphone double. The previous temporary fix to this issue was for me to simply restart the stream but then it would randomly happen again. I found out that simply de-attaching Firefox's audio from 'discord-screenaudio-virtmic' and attaching it to 'Chromium-input 1 [RecordStream]' directly fixes the issue till I stop the stream, without any effective change to how my friend hears me or the audio from the stream.