Running Mopidy on a Pi 3B+ (stretch) using the Pi DAC Pro. I’m also using the latest Mopidy-Alsamixer so I can use the Pi DAC’s hardware volume control.
output = alsasink card-name=IQaudIODAC
mixer = alsamixer
card = 0
control = Digital
This all works, but when I stop playback Mopidy seems to keep hold of the sound card - if I try to play audio from any other program it says it can’t open the audio device. Not sure if this is a Mopidy thing, or an Alsamixer thing so I don’t know where to start to look.
If you pause Mopidy it’ll retain the audio card. If you stop Mopidy it’ll release the audio card. Some clients actually pause rather than stop, despite showing a conventional stop icon. Are you sure you are really stopping Mopidy?
You can also configure an ALSA dmix plugin so multiple processes can use the audio card at the same time.
Thanks for the response. I was definitely stopping Mopidy, but in any case I changed the config from using card-name to the specific direct hw: device (not dmix) and now it seems to be working normally again. Very strange.