# Pirate AUdio Line Out no sound, 4 second loop

**URL:** <https://forums.pimoroni.com/t/pirate-audio-line-out-no-sound-4-second-loop/15048>\
**Category:** Support\
**Created:** [October 3, 2020, 2:55pm UTC](https://forums.pimoroni.com/t/pirate-audio-line-out-no-sound-4-second-loop/15048 "2020-10-03T14:55:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roytanck](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roytanck/32/7185_2.png) [@roytanck](https://forums.pimoroni.com/u/roytanck)\
**Post date:** [October 3, 2020, 2:55pm UTC](https://forums.pimoroni.com/t/pirate-audio-line-out-no-sound-4-second-loop/15048/1 "2020-10-03T14:55:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Cipher](https://avatars.discourse-cdn.com/v4/letter/c/bc79bd/32.png) [@Cipher](https://forums.pimoroni.com/u/Cipher)\
**Post date:** [October 12, 2020, 3:34am UTC](https://forums.pimoroni.com/t/pirate-audio-line-out-no-sound-4-second-loop/15048/2 "2020-10-12T03:34:50Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![roytanck](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roytanck/32/7185_2.png) [@roytanck](https://forums.pimoroni.com/u/roytanck)\
**Post date:** [October 12, 2020, 7:22am UTC](https://forums.pimoroni.com/t/pirate-audio-line-out-no-sound-4-second-loop/15048/3 "2020-10-12T07:22:40Z")

</div>

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?
