Help understanding output = autoaudiosink please

Sort answer. Two options:

  1. Leave your default audio device as it is (headphones) and explicitly tell Mopidy to use a different device. In order to specify a device param you need to also specify you’re using alsasink.
[audio]
output = alsasink device=hw:1,0
  1. Change the system’s default audio device and then autoaudiosink will “just work”. Do this by following our installation instructions at Raspberry Pi — Mopidy 3.4.2 documentation which mentions changing the user’s default audio device (step 4) and then making that change system-wide (step 5).

Longer answer:

How does it decide what is “the most appropriate audio sink”?

I don’t think you need to worry about this. For Raspberry Pi it’s normally going to use alsasink. The actual issue is what audio device is it going to use.

Since you have multiple audio devices, and you seemingly don’t want to use your system’s default audio device (headphone jack) which would “just work”, you need some way to tell it which device to use. You can do that via your Mopidy config file (my 1st short answer), or changing the system settings (my 2nd short answer).

There is documentation at Asoundrc - AlsaProject. There are also examples in this forum but it’s not always easy to find it hidden amongst the more exotic examples. I would suggest following our documentation instead and not getting bogged down in manually editing alsa config files unless you have to. When you use raspi-config to change the default audio device, it automatically creates the alsa config file you need. Have a look at what you get.

1 Like