Silent Gaps of a few seconds while playing FLAC files

Raspberry Pi related support

Silent Gaps of a few seconds while playing FLAC files

Postby Naranj223 » 23 Aug 2014, 15:58

[Solved, Can be Closed - Please see Second Post]

The gaps in playback vary but have been up to 12 seconds.

I haven't noticed it on any other types of files.

There's nothing too exotic about my set-up, except perhaps using Powerline plugs to create the wired connections from the Pi to the router, and the NFS server to the router. They're rated at 500Mbps.

I've also the Wolfson DAC.

I'm absolutely loving the system otherwise, the sound is gorgeous :D

Debug info: http://pastebin.com/gitbRjAn
Last edited by Naranj223 on 23 Aug 2014, 18:03, edited 1 time in total.
Naranj223
 
Posts: 20
Joined: 23 Aug 2014, 15:51

Re: Silent Gaps of a few seconds while playing FLAC files

Postby Naranj223 » 23 Aug 2014, 16:46

Ok, so I feel a little foolish now.

I increased the 'Audio Buffer Size' to 2048, and the 'Buffer before Play' to 30% - everything seems great!

I've had 30 mins of FLAC playback without a hitch!

The sound quality still has me smiling in amazement, like I've had cotton wool removed from my ears.

[Solved]
Last edited by Naranj223 on 23 Aug 2014, 18:04, edited 2 times in total.
Naranj223
 
Posts: 20
Joined: 23 Aug 2014, 15:51

Re: Silent Gaps of a few seconds while playing FLAC files

Postby anadigi » 23 Aug 2014, 16:52

I understand that the Wolfson card works for you! :D Can you tell me your setup? I have checked your debug file and don't seem to have any different than mine. However, I don't any sound. :(
anadigi
 
Posts: 43
Joined: 18 Aug 2014, 19:42

Re: Silent Gaps of a few seconds while playing FLAC files

Postby Naranj223 » 23 Aug 2014, 16:56

anadigi wrote:I understand that the Wolfson card works for you! :D Can you tell me your setup? I have checked your debug file and don't seem to have any different than mine. However, I don't any sound. :(


Have you ran the 'Playback_to_Lineout.sh' file? That's needed to get the sound coming from the Wolfson DAC rather than the Pi's output.
Naranj223
 
Posts: 20
Joined: 23 Aug 2014, 15:51

Re: Silent Gaps of a few seconds while playing FLAC files

Postby anadigi » 23 Aug 2014, 16:59

I believe I don't.
Can you tell me how?
Thanks!
anadigi
 
Posts: 43
Joined: 18 Aug 2014, 19:42

Re: Silent Gaps of a few seconds while playing FLAC files

Postby Naranj223 » 23 Aug 2014, 17:07

I followed the instructions from this post:

wolfson-audio-card-patch-for-runeaudio-t213-30.html#p1837

Worked for me, although if you're in a rush - just copy the 'Playback_to_Lineout.sh' file to the SD card (either over ssh / Putty) or just putting into another pc and copying it.

Once the Pi is rebooted, then ssh / Putty in and type './Playback_to_Lineout.sh' and good few lines of text will scroll by and then pick a song and enjoy!
Naranj223
 
Posts: 20
Joined: 23 Aug 2014, 15:51

Re: Silent Gaps of a few seconds while playing FLAC files

Postby johnbanks » 23 Aug 2014, 17:08

Assuming you are streaming from a NAS then try this ..

Go to Menu > Sources and Remount All Sources
johnbanks
 
Posts: 124
Joined: 11 Jun 2014, 00:16

Re: Silent Gaps of a few seconds while playing FLAC files

Postby anadigi » 23 Aug 2014, 17:11

Thanks again! Where can find the file to copy of the file?
Do I have to download the 2.0 version first?
anadigi
 
Posts: 43
Joined: 18 Aug 2014, 19:42

Re: Silent Gaps of a few seconds while playing FLAC files

Postby Naranj223 » 23 Aug 2014, 17:16

anadigi wrote:Thanks again! Where can find the file to copy of the file?
Do I have to download the 2.0 version first?


It's a few posts back in the link I posted, you can also copy the text below, and save it as Playback_to_Lineout.sh (don't forget to make it executable):

#!/bin/bash

#Playback from AP to LineOut
amixer -Dhw:0 cset name='HPOUT2 Digital Switch' on
amixer -Dhw:0 cset name='HPOUT2L Input 1' AIF1RX1
amixer -Dhw:0 cset name='HPOUT2L Input 1 Volume' 32
amixer -Dhw:0 cset name='HPOUT2R Input 1' AIF1RX2
amixer -Dhw:0 cset name='HPOUT2R Input 1 Volume' 32

# The following command can be used to test
# aplay -Dhw:0 -r 44100 -c 2 -f S32_LE <file>
Naranj223
 
Posts: 20
Joined: 23 Aug 2014, 15:51

Re: Silent Gaps of a few seconds while playing FLAC files

Postby ACX » 23 Aug 2014, 18:35

Naranj223 wrote:The sound quality still has me smiling in amazement, like I've had cotton wool removed from my ears.

That's something I love to read after all our efforts :)
User avatar
ACX
RuneAudio co-founder
 
Posts: 1692
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 5 guests