Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WASAPI exclusive mode breaks wallpapers that have an audio element. #2217

Open
Jammrock opened this issue Apr 30, 2024 · 0 comments
Open

WASAPI exclusive mode breaks wallpapers that have an audio element. #2217

Jammrock opened this issue Apr 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Jammrock
Copy link

Describe the bug

Wallpapers with an audio element, such as "Living Room" and "Music TV", will cause Lively to fail when an audio player uses WSAPI exclusive mode for playback. Once in state, Lively will fail to switch to any other wallpaper. I need to close Lively completely, via the notification icon, stop music playback, start Lively, switch to a wallpaper without an audio element, then start music playback again.

In my case, I use the Qobuz app with a USB DAC as my audio device. I can reproduce the issue with foobar200 in WASAPI exclusive mode, too.

To Reproduce
Steps to reproduce the behavior:

  1. Get an audio app that supports WASAPI exclusive mode (Qobuz, foobar2000 with the WASAPI Output component.
  2. Put the app into exclusive mode.
  3. Play music while in exclusive mode.
  4. Launch Lively Wallpaper.
  5. Select a wallpaper that has an audio component like "Living Room" or "Music TV".
  6. The Lively wallpaper will disappear from the desktop.
  7. Try to load another wallpaper.
  8. You should see an error in the Lively app.
  9. Stop playback.
  10. Restart Lively.
  11. Wallpapers should work again.

Expected behavior
Lively should be able to handle conditions where audio is not available because an application has the device under exclusive control.

Screenshots/Video

Qobuz menu showing exclusive mode.

image

foobar2000 File > Preferences > Components > WASAPI output support (visible and enabled)

image

foobar2000 File > Preferences > Playback > Output > Devices > select the exclusive profile.

image

foobar2000 File > Preferences > Playback > Output > Select the device

image

Error in Lively once in state and trying to switch wallpapers:

image

Desktop (please complete the following information):

  • OS: Windows 11 23H2
  • Which wallpaper was running at the time if any: "Living Room" or "Music TV"

Additional context
My guess here is that Lively is using WASAPI to get playback information for spectrograph work in the wallpaper. No other app can access the device/media stream when an app puts a device into exclusive mode. It appears that Lively doesn't know how to handle being unable to access the device/stream caused by exclusive mode.

https://learn.microsoft.com/en-us/windows/win32/coreaudio/exclusive-mode-streams

Log file (Important)
Share the diagnostic files by:

lively_log_20240430_160246.zip

@Jammrock Jammrock added the bug Something isn't working label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant