maltejur / discord-screenaudio

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

Mono sounds from stereo sources #99

Open ghost opened 1 year ago

ghost commented 1 year ago

I'm on latest stable build on EndeavourOS. If using a music bot for example, there will only be mono sound. A good track to test this with is guillotine by death grips. The bassline sounds strange when listening through mono.

It may be a chromium issue as the official discord client and website through firefox have no issue.

ghost commented 1 year ago

still an issue. seems to only affect third party discord clients? streams are also mono as well. anything stereo is just mono on this client and every other alternative discord client that doesn't mod the native client.

maltejur commented 1 year ago

@edisionnano also lists this problem in his repository, so this seems to be a bit of a broader problem.

https://github.com/edisionnano/Screenshare-with-audio-on-Discord-with-Linux#the-problems

Audio of both the microphone and desktop streams is mono. Forcing the channelCount: 2 constraint solely doesn't fix it. While Chromium recognizes it as stereo, Discord downmixes it.

Although it is pretty interesting to see that it works fine with Firefox, that may be something that could be investigated for a possible fix.