# Play only 4 seconds without sound. Need help

**URL:** <https://forums.pimoroni.com/t/play-only-4-seconds-without-sound-need-help/15311>\
**Category:** Support\
**Created:** [November 9, 2020, 1:41pm UTC](https://forums.pimoroni.com/t/play-only-4-seconds-without-sound-need-help/15311 "2020-11-09T13:41:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wojtek](https://avatars.discourse-cdn.com/v4/letter/w/c77e96/32.png) [@Wojtek](https://forums.pimoroni.com/u/Wojtek)\
**Post date:** [November 9, 2020, 1:41pm UTC](https://forums.pimoroni.com/t/play-only-4-seconds-without-sound-need-help/15311/1 "2020-11-09T13:41:46Z")

</div>

Hi, I am a novice with Pimoroni hat - Pirate Audio and from the beginning I encountered a problem with starting the system. Can anyone help me, please.

I bought Pirate Audio - Line-out version and connected to Raspberry Pi Zero WH.

- I’ve enabled SPI and I2C,  
Used instruction: [https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-pirate-audio](https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-pirate-audio)  
Iris launches, I can see the all .flac files from the local directory, the buttons work.

Now Iris server - Web player trying play music only 4 seconds and repeat in loop. But is no sound. What is wrong with this hat ? On the right side foot web player, one of four icon informed about “No outputs”.

Tried with dtparam=audio=off in /boot/config.txt but nothings changed.

Ad. info:  
aplay AzylP-MalaMaggie.flac  
Playing raw data ‘AzylP-MalaMaggie.flac’ : Unsigned 8 bit, Rate 8000 Hz, Mono  
aplay: pcm\_write:2053: write error: Interrupted system call

aplay --list-devices  
\*\*\*\* List of PLAYBACK Hardware Devices \*\*\*\*  
card 0: 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

aplay --device=hw:sndrpihifiberry AzylP-MalaMaggie.flac  
Playing raw data ‘AzylP-MalaMaggie.flac’ : Unsigned 8 bit, Rate 8000 Hz, Mono  
aplay: set\_params:1339: Sample format non available  
Available formats:

- S16\_LE
- S24\_LE
- S32\_LE

* * *

/etc/mopidy/mopidy.conf

[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
