Pirate AUdio Line Out no sound, 4 second loop

I recently purchased a Pirate Audio Line Out and a new Pi Zero WH to use it with. I set up a new Raspberry Pi OS Lite SD card and followed the “Getting started” instructions to the letter.

The display works, and displays the “Visit [Pi’s IP and port] to select content” message. I’m able to access Iris, browse local files and select them. But when I attempt to play them, the progress bar goes to 0:04, then displays “-” briefly, and restarts at 0:01. During this, there’s no sound. Also, the message on the screen is not replaced with info about the track.

Any thoughts? I’m reasonably familiar with Pi’s and Linux, but new to Mopidy / mdp / Pirate Audio, etc.

Have you tested the audio output with aplay? If its not too much trouble could you please share a copy of your mopidy config file?

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:

  • S16_LE
  • S24_LE
  • S32_LE

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?