arkrow / PyMusicLooper

A python program for repeating music endlessly and creating seamless music loops, with play/export/tagging support.
https://pypi.org/project/pymusiclooper/
MIT License
261 stars 25 forks source link

running on Windows 10 breaks incoming voice chat audio #21

Closed AlpacaSundae closed 2 months ago

AlpacaSundae commented 1 year ago

Describe the bug When importing this library on windows 10, incoming voice chat playback breaks. It happens on both Discord and Steam, after running, the microphone from the Windows 10 machine still transmits audio to the other participants, but it does not receive anyone elses audio until leaving/reconnecting [it doesn't matter who reconnects]   Debugging Information n/a as the script itself appears to function normally I've run this myself on WIndows 11 and linux with no issues, just on my friends Windows 10 machine this issue occurs

Expected behavior All previous audio streams should be unaffected by launching the script

Environment Information (please complete the following information):

arkrow commented 1 year ago

It seems this issue occurs on Windows if exclusive mode is enabled on the default sound device, specifically when the sounddevice library is initialized. I'll open an issue in the affected library's issue tracker, and hopefully, I can then update to their fix in a later release.

In the meantime (if this issue is a regular/annoying occurrence), exclusive mode can be disabled in the default sound device as a temporary workaround.

arkrow commented 2 months ago

This issue has been fixed upstream in sounddevice (the related, now closed, issue: https://github.com/spatialaudio/python-sounddevice/issues/496; many thanks to the efforts of sounddevice's maintainer). The project dependencies have been updated and this issue should be fixed in PyMusicLooper as of the v3.4.2 release.