bozbez / win-capture-audio

An OBS plugin that allows capture of independant application audio streams on Windows, in a similar fashion to OBS's game capture and Discord's application streaming.
GNU General Public License v2.0
3.8k stars 209 forks source link

Discord severe gaps and glitchiness #30

Closed Riotline closed 3 years ago

Riotline commented 3 years ago

Windows 10 Pro 10.0.19043 Build 19043

Discord audio capture seemed to have some weird glitchiness after some time of use. It slowly become worse as time progressed (not sure if that could be syncing issues?) but I had to swap back to Desktop Audio after I was notified of the issue. Note that sound was just fine through Desktop Audio and through my headphones. Even in OBS, the audio meter showed everything was fine. Even another source (Overwatch) was doing fine.

It got worse when transitioning through scenes so potentially this could be the culprit?

Shown here: https://www.twitch.tv/videos/1135794206?t=00h09m53s

bozbez commented 3 years ago

Looks the same as #21, #22 and maybe #31. This shouldn't be happening and is hopefully resolvable, but I am generally lacking time to work on this at the moment.

Riotline commented 3 years ago

31 sounds really close but can't completely verify.

Linked below is me testing with Spotify and Youtube where I have scenes setup with Spotify only, and Spotify + Chrome. As you can see, the chrome audio meter appears to not line up with what's actually coming through oncethe YouTube video is paused. The audio glitchiness appears to occur on any app. Although I haven't verified if the problem is based off Electron/Chromium-based apps. https://youtu.be/ya4TDaMMEfw

Edit: I wonder if it could be due to just Windows 10 not having proper support compared to Windows 11. I have Build 19043 which is quite recent while the documentation for AUDIOCLIENT_PROCESS_LOOPBACK states minimum supported client is 10.0.20348/Build 20348 which is, from my understanding, currently in Windows Server 2022 and Windows 11

bozbez commented 3 years ago

Thanks for the video, acts as a good reference. Already tested Windows 11, same issues seemed to happen.

bozbez commented 3 years ago

v2.0.0-beta.2 might help with this.