BackgroundMusic
BackgroundMusic copied to clipboard
After sleep, sound is distorted.
After being on sleep, sound is distorted everywhere, closing app will not help. (also changing outputs will not recover) The only way to recover is rebooting the mac.
MacOS 11.4 bigsur mac mini m1 8gb base model using version 0.4.0-SNAPSHOT-b38f6dd
I tried to reproduce this on an M1 Mac Mini, but didn't have any luck.
If changing your system's output device doesn't fix the problem, it's almost certainly a bug in macOS or the driver for your output device or something like that. I'm not sure how Background Music would be triggering it, though. (Not to say I don't believe you.)
macOS's CoreAudio subsystem runs the Background Music driver in a separate, sandboxed process, so when you're not using the Background Music device, the driver shouldn't be able to affect the rest of CoreAudio in any way a normal process can't. Actually, it should be even more restricted.
Does it happen every time the system goes to sleep with Background Music running?
Do you happen to have a USB output device (e.g. USB headphones) you could test with to see if the bug still occurs when you use a different device?
I have the same issue - I think what is meant by changing outputs will not recover is that other sound devices are unaffected, but switching to it and then back to Background Music doesn't fix the audio.
I find that rebooting or re-installing fixes the issue temporarily, but quitting and re-opening the app doesn't.
The same issue. The sound is distorted after waking up from the long period of sleep (closing and open lid is not enough) I also found it recovers somehow after I switch output from "Background music" to "MacBook Pro" for a couple of minutes and switch back, sound is not distorted anymore. I'll report if notice something else
Do you happen to have a USB output device (e.g. USB headphones) you could test with to see if the bug still occurs when you use a different device? @kyleneideck
I think it has to do with BackgroundMusic not fully being launched yet. My assumption has to do with the fact the duration of the distortion is so variable each time. #530 is my own issue where I describe my issue which I mainly notice on mac startup, mentioned by @anteo.
I did find a quick fix to this problem which I guess is somehow due to audio buffer problems. @kyleneideck Maybe you can check out. Currently, if I restart the coreaudio in command line whenever this distortion or audio issue (sound disappearing or video/audio not able to play at all) occurs, the problem will be resolved temporarily. Of course, BGM needs to be started again right afterwards.
Thanks @cepsong. Killing coreaudiod temporarily fixes for me too.