11-16-2021, 10:17 AM
Hi Jem
Ok. I am not clear exactly what you are doing and on what equipment, but you could check CPU usage while the stuttering is happening in case this is the cause.
Configure your system so the stuttering will never happen. Play Spotify, and in a termal run 'top' and press the key '1' (to show all cores). Note the approximate CPU% values.
E.g. my Pi4 is doing very little and the 'id' column says the Pi is almost completely idle
Now configure your system so the stuttering will happen. Play Spotify and in a termal run 'top' and press the key '1' (to show all cores). Compare the CPU% values when the audio is stuttering to what you saw before. Are some cores near 100% busy (0% idle)?
Otherwise, it may be an ALSA configuration issue, possibly with some interaction with librespot, and I won't realistically be able to help with this.
Adrian.
Ok. I am not clear exactly what you are doing and on what equipment, but you could check CPU usage while the stuttering is happening in case this is the cause.
Configure your system so the stuttering will never happen. Play Spotify, and in a termal run 'top' and press the key '1' (to show all cores). Note the approximate CPU% values.
E.g. my Pi4 is doing very little and the 'id' column says the Pi is almost completely idle
Code:
%Cpu0 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id
%Cpu1 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id
%Cpu2 : 0.3 us, 0.3 sy, 0.0 ni, 99.3 id
%Cpu3 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id
Now configure your system so the stuttering will happen. Play Spotify and in a termal run 'top' and press the key '1' (to show all cores). Compare the CPU% values when the audio is stuttering to what you saw before. Are some cores near 100% busy (0% idle)?
Otherwise, it may be an ALSA configuration issue, possibly with some interaction with librespot, and I won't realistically be able to help with this.
Adrian.