sle118 wrote: 
> Hello,
> 
> I just finished installing squeezelite on a new arm based linaro system
> and I am seeing a strange phenomenon. This is the 3rd arm based device
> that I am building, but this time, I am getting accelerated playback and
> everything has a higher pitch including singer's voice (kind of like
> spinning a 33 1/3 rpm LP faster for those who remember that time). 
> 
> I am using dmix devices as hw and plughw devices were causing
> squeezelite to have a very high CPU usage.
> 
> Anyone else saw this?
> 
> For the record, here is the output of the debug
> [15:42:48.371394] output_init:1375 init output
> [15:42:48.373110] output_init:1378 outputbuf size: 3528000
> [15:42:48.373734] output_init:1410 requested alsa_buffer: 40
> alsa_period: 4 format: any mmap: 1
> [15:42:48.434800] output_init:1437 output: dmix:CARD=Set,DEV=0 maxrate:
> 48000
> [15:42:48.435913] output_init:1445 unable to lock memory: Cannot
> allocate memory
> [15:42:48.446564] output_init:1468 unable to set output sched fifo:
> Operation not permitted
> [15:42:48.453560] output_thread:635 open output device:
> dmix:CARD=Set,DEV=0
> [15:42:48.475001] alsa_open:270 opened device dmix:CARD=Set,DEV=0 using
> format: S16_LE sample rate: 44100 mmap: 1
> [15:42:48.476237] alsa_open:335 buffer: 40 period: 4 -> buffer size:
> 4096 period size: 1024
> [15:42:48.484837] output_flush:1482 flush output buffer
> [15:42:48.488685] output_flush:1482 flush output buffer
> 
> [update]
> Interestingly, I tried a different USB sound card and Squeezelite didn't
> use as much CPU on plughw AND didn't have a pitch issue.
> 
> This seems to be pointing to an issue with the usb sound device I was
> using.  I'll try a different player and see if I get the same issue.
> 
> [update]
> I also found that the position of the (cheap) sound card on the (cheap)
> usb hub would either result in stuttering/cutting sound or with clean
> sound. go figure.  now that I have found a stable setup, I think I'll
> glue it all together :)

I also had the fast-playback issue with using a dmix device.  Using
option '-u X' resamples the audio to the max supported by the card,
which fixes the issue.


------------------------------------------------------------------------
cooppw02's Profile: http://forums.slimdevices.com/member.php?userid=16712
View this thread: http://forums.slimdevices.com/showthread.php?t=97046

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to