[Linux] Sharing Audio Output volume between Anki and Spotify

So on Linux, Anki uses mpv to play audio. The problem I encountered is that somehow, when changing the audio of spotify (Flatpak) the audio of Anki also changes to this exact volume. The contrary is not the case: Changing the mpv audio volume (the one Anki uses) does not change the spotify volume.

I don’t even know if this is the right place to ask this question since this looks more like a general mpv “problem”. There is also the fact that I don’t understand how mpv and spotify interact with each other but maybe that’s unrelated here.

So if there is some kind stranger that knows a bit more about how Anki uses mpv (and maybe about how mpv gets used in general) and how I can decouple those two programs, I would be very happy.

1 Like

If I understood it correctly, try to update to the latest mpv version (v0.41.0) or add the following line into the mpv.conf file located in the Anki2 folder (Managing Files - Anki Manual) and restart Anki. The mpv.conf file doesn’t exist by default and needs to be created.

ao=pulse
2 Likes

Thanks, thats exactly it.
Since currently on the official fedora repos there is still the v0.40 version I solved it by using the mpv.conf file.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.