sevi_at wrote:
>
> Why starts my squeezelite sometimes with another samplerate as 44100
> although i use parameter -r
> my start command:
> /usr/bin/squeezelite-armv6hf -S /var/www/sq_check.sh -d all=debug -f
> /tmp/sq_log.log -c flac,pcm,mp3,ogg,aac -b 2048:4096 -a 60:16::0 -r
> 44100-44100 -p 97 -o squeeze"$i" -n $PLAYER -m $SQMAC -z > /dev/null
> 2>&1 & echo $!
>
> With the parameter "-r 44100-44100" was only allowed to play 44100
> samplerate!
> However he plays each approx. 30 times with another samplerate.
>
In case you haven't solved this in the meantime, you need to activate
resampling, eg. with -R -u vE
While setting up an ES9023-based USB DAC, I noticed that squeezelite's
auto-detection seems to be a bit off.
The DAC is reported by ALSA like this:
Code:
--------------------
Interface 1
Altset 1
Format: S16_LE
Channels: 2
Endpoint: 3 OUT (SYNC)
Rates: 48000
--------------------
squeezelite, however, happily plays a track like this:
Code:
--------------------
output_init_common:411 supported rates: 384000 352800 192000 176400 96000
88200 48000 44100 32000 24000 22500 16000 12000 11025 8000
alsa_open:389 opened device default:CARD=ES9023 using format: S32_LE sample
rate: 44100 mmap: 1
--------------------
Weirdly enough, this works for a couple of seconds (although with a very
high system load and a number of USB errors in the log), until the whole
system (RPi3) completely freezes and can only be reanimated by a power
cycle.
Forcing squeezelite to use the correct sample rate / format fixes the
issue:
Code:
--------------------
squeezelite -o default:CARD=ES9023 -r 48000-48000 -a 40:4:16:1 -p 20 -R -u
vE
--------------------
Code:
--------------------
output_init_common:411 supported rates: 48000
opened device default:CARD=ES9023 using format: S16_LE sample rate: 48000
mmap: 1
--------------------
[ extGUI4LMS - an alternative web interface: 'forum'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
/ 'homepage' (https://www.nexus0.net/pub/sw/extgui4lms/) | 'music
visualizer'
(http://forums.slimdevices.com/showthread.php?103073-Announce-music-visualizer-for-squeezelite)
for squeezelite ] [ 'Howto'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS):
build a self-contained LMS | 'Howto'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files):
play Ogg Opus files ]
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=97046
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix