Mopidy.conf: setting audio/output additional arguments


#1

Here it says …

additional arguments specific to each sink. You can use the command gst-inspect-1.0 to see what output properties can be set on the sink. For example: gst-inspect-1.0 shout2send

… but how do I set these additional arguments?
Where do they go in the mopidy configuration file?
My [audio] section currently says:

[audio]
output = alsasink
mixer = alsamixer

For now I’ve just put this in /etc/asound.conf

pcm.!default {
       type hw
       card 1
}

ctl.!default {
        type hw
        card 1
}

but it surely must be configurable in mopidy.conf ?

Any input gladly received!

David


#2

Got it. You can name your ALSA sound card in mopidy.conf. You also need to define it by that name in /etc/asound.conf. I’ve named my card ‘fred’.

So, in mopidy.conf:

[audio]
output = alsasink device=fred
mixer = alsamixer

In /etc/asound.conf:

pcm.fred {
        type hw
        card Extigy
}

“Extigy” is the name I see for the card I want to use when I do “aplay -l”

**** List of PLAYBACK Hardware Devices ****
card 0: IQaudIODAC [IQaudIODAC], device 0: IQaudIO DAC HiFi pcm512x-hifi-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Extigy [Sound Blaster Extigy], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Extigy [Sound Blaster Extigy], device 1: USB Audio [USB Audio #1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Extigy [Sound Blaster Extigy], device 2: USB Audio [USB Audio #2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

[HELP] Configure Mopidy to use ALSA USB Soundcard
#3

There’s also some examples at https://docs.mopidy.com/en/latest/audio/