DigitalDreamtimeLtd / squeezelite

Automatically exported from code.google.com/p/squeezelite
Other
0 stars 0 forks source link

wobbly playback - literally wobbly - pitch fluctuation and tinny sound #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. play a flac
2. Using latest version of squeezelite
$ ./squeezelite-x86-64 -n squeezelite -d streaming=debug -d 
hw:CARD=Interface,DEV=0 (tried plughw and other ALSA devices)
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Ubuntu LTS 12.04 64bit
Ayre QB9 async usb dac
Logitech Media Server Version: 7.7.2 - 

Please provide any additional information below.

Original issue reported on code.google.com by n...@thump.org on 21 Dec 2012 at 10:10

Attachments:

GoogleCodeExporter commented 8 years ago
What do you mean by wobbly?  Does the dac work ok with the machine with other 
playback code (aplay is the most basic one to test with, but you will need a 
file formatted for the output device).

If it is dropping out then potentially running as root and increasing the alsa 
buffer sizes could help.  However you description sounds like this is not the 
issue and it could be more related the alsa layer - hence suggest testing with 
another aplay to see what it sounds like.

Original comment by trio...@btinternet.com on 21 Dec 2012 at 6:40

GoogleCodeExporter commented 8 years ago
DAC works perfectly with squeezeslave and mpd with same alsa config. Did try 
with some buffer sizes i picked up from thread. Let me try running as 
superuser. Have tried every alsa device listed  with -l flag for the dac. 

When i say wobbly its as if clock is not in sync. Ill check usb layer too. 
Maybe some drop out there? Its hard to describe wobbly ... Call it distortion! 

Btw... Thanks so much for this software. I am sure i will get it working for 
me! 

Original comment by n...@thump.org on 21 Dec 2012 at 6:47

GoogleCodeExporter commented 8 years ago
Ps is there anything obvious in the logs i attached?

Original comment by n...@thump.org on 21 Dec 2012 at 6:48

GoogleCodeExporter commented 8 years ago
I didn't see anything obvious in the logs. 

try the logs with just -d output=debug to see how it is opening the device.

I would recommend using -o hw:CARD=<cardname>

Change the -a buffer settings to larger values if necessary, but try running as 
root first.

Original comment by trio...@btinternet.com on 21 Dec 2012 at 6:50

GoogleCodeExporter commented 8 years ago
Ok cheers. Will do. Did deffo use the -d hw:CARD ...

Will report back.

On Friday, December 21, 2012, wrote:

Original comment by n...@thump.org on 21 Dec 2012 at 6:53

GoogleCodeExporter commented 8 years ago
This works - adjusted -a params. Made a random guess!

neil@mpd:~/squeezelite$ sudo ./squeezelite -n "squeezelite" -d output=debug -o 
hw:CARD=Interface,DEV=0 -a 200000:8
[09:30:34.830203] output_init:902 init output
[09:30:34.830556] output_init:905 outputbuf size: 3528000
[09:30:34.833329] output_init:924 output: hw:CARD=Interface,DEV=0 maxrate: 
192000
[09:30:34.833632] output_thread:305 open output device: hw:CARD=Interface,DEV=0
[09:30:34.834854] alsa_open:196 opened device hw:CARD=Interface,DEV=0 using 
format: S32_LE sample rate: 44100
[09:30:34.834996] alsa_open:247 buffer time: 200090 period count: 8 buffer 
size: 8824 period size: 1103
[09:30:35.241854] output_thread:466 track start sample rate: 44100 replay_gain: 
0

Original comment by n...@thump.org on 22 Dec 2012 at 9:33

GoogleCodeExporter commented 8 years ago
If you are not using sync or not worried about the slight delay in changing 
tracks then there's no real downside to this.  Otherwise would be interested to 
find how small it can get and still work.  The default is 20000 which is 20ms 
of buffer size, which is clearly too small.

Original comment by trio...@btinternet.com on 22 Dec 2012 at 10:52

GoogleCodeExporter commented 8 years ago
I'll have a play.

Original comment by n...@thump.org on 22 Dec 2012 at 11:00

GoogleCodeExporter commented 8 years ago
Lowest buffer size that worked was 40,000.  30,000 produced distortion.

Original comment by n...@thump.org on 22 Dec 2012 at 11:33

GoogleCodeExporter commented 8 years ago
Closing as this is resolved by adjusting buffer size - let me know if you still 
have a problem

Original comment by trio...@btinternet.com on 28 Dec 2012 at 11:23