Thank you for your reply. I tried aplay, and it appeared to play the file (it locks the console for the duration of the song in the test.mp3 file), but there was no sound from the line jack.
$ aplay --fatal-errors test.mp3
Playing raw data ‘test.mp3’ : Unsigned 8 bit, Rate 8000 Hz, Mono
This made me wonder whether it was using the correct ouput, so I tried this:
$ aplay --list-devices
**** List of PLAYBACK Hardware Devices ****
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 1: sndrpihifiberry [snd_rpi_hifiberry_dac], device 0: HifiBerry DAC HiFi pcm5102a-hifi-0 [HifiBerry DAC HiFi pcm5102a-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
Which got me this:
$ aplay --device=hw:sndrpihifiberry test2.mp3
Playing raw data ‘test2.mp3’ : Unsigned 8 bit, Rate 8000 Hz, Mono
aplay: set_params:1339: Sample format non available
Available formats:
My mopidy conf looks like this (probably still very close to the default):
…
[raspberry-gpio]
enabled = true
bcm5 = play_pause,active_low,250
bcm6 = volume_down,active_low,250
bcm16 = next,active_low,250
bcm20 = volume_up,active_low,250
bcm24 = volume_up,active_low,250
[file]
enabled = true
media_dirs = /home/pi/music
show_dotfiles = false
excluded_file_extensions =
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
follow_symlinks = false
metadata_timeout = 1000
[pidi]
enabled = true
display = st7789
rotation = 90
[mpd]
hostname = 0.0.0.0
[http]
hostname = 0.0.0.0
[audio]
mixer_volume = 40
output = alsasink device=hw:sndrpihifiberry
[spotify]
enabled = false
username =
password =
client_id =
client_secret =
Any thoughts?