I followed @antonellocaroli configuration which lead me to reconfigure the buffer size. By default its 128 but when multi-threading is enabled, it seems like the suggested value is 32. With 32 it didn't work either and the drop outs was still there. I then reduced it to 24 and viola - it started working. All the sample rates that I couldn't play without drop outs can be played now.
Does the buffer size has anything to do with the amount of free ram available in the system ?
Ciao, Paolo.
«Se tu hai una mela, e io ho una mela, e ce le scambiamo, allora tu ed io abbiamo sempre una mela per uno. Ma se tu hai un'idea, ed io ho un'idea, e ce le scambiamo, allora abbiamo entrambi due idee.»
sure it has.
If you go low in memory the system start to paginate and this could cause sox to work badly, BUT the value is in megabytes, do you have less than 32 MB of free RAM in your system? That's no good!
If you are low in memory you have several settings in LMS to take care of, but as a general rule, you should have at least 1GB of free RAM for a basic usage, at least double with DSD and same for upsampling. If I were you, I'll go with at least 4GB with your requirements. Never mind about sox quality, always use very hight and nothing less.
Hope squeezelite is running in another system, in this case you could increase (input) buffer sizes, then in LMS -> Settings-> Player -> Audio delay increase a bit the value. If not... You need a very powerfull system with a lot of RAM: with DSD256 the minimum buffer size is 512Mbx 2, ideal is 2GB x 2, that means 8GB total RAM could be enough, but 16 are much better.
Ciao, Marco.
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
— E. F. Schumacher (mis-attributed to A. Einstein)
________________________________________________________________________________
Autore della patch R2 per Squeezelite e del plugin C-3PO. note libere
Logitech media Server 7.9 > miniPc + squeezelite-R2 / SB+ > "Lu Scalmentu" NOS R2R DAC by TubeOne/ AudioResearch DAC 1-20 >
Klimo Merlino Gold TPS > DIS Interconnect > Kent Gold > Reference > Monitor Audio Studio 20 SE
Hi Marco,
I appreciate your insight and thanks for your reply.
I have 8Gb RAM installed on the server and Squeezelite runs on another low powered NUC. Here is the output from free and as you can see there is enough memory available ~ 3.5Gb.
[root@audiolinux audiolinux]# free -h
total used free shared buff/cache available
Mem: 7.7Gi 4.0Gi 1.5Gi 1.0Mi 2.2Gi 3.5Gi
Swap: 0B 0B 0B
On the squeezelite, I am using -b 2097152:2097152 option as well. However I can't find "audio delay" settings in LMS -> Settings-> Player. Can you be little more specific ?
Also earlier you said "HF before resampling, that will be an overhead of your CPU." Can you please elaborate and how to enable the setting ?
Settings->Player->Audio-> Audio Startup Time. start with 3-5 secs, then increase if necessary.
The last group of settings in C-3PO is DSD input Lowpass filter.
The default is a first order low pass at 15Khz, you could model a different one using up to 4 steps as you like.
I could not remember the optimal values for your case (I'm not using DSD upsampling), Paolo (Unixman) could sure give you some better advice on that matter.
Little buffers mean shorter CPU high load but more interrupts, then higher CPU usage in the long term. It's a trade-off, but filtering out HF should reduce CPU usage.
Ciao, Marco.
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
— E. F. Schumacher (mis-attributed to A. Einstein)
________________________________________________________________________________
Autore della patch R2 per Squeezelite e del plugin C-3PO. note libere
Logitech media Server 7.9 > miniPc + squeezelite-R2 / SB+ > "Lu Scalmentu" NOS R2R DAC by TubeOne/ AudioResearch DAC 1-20 >
Klimo Merlino Gold TPS > DIS Interconnect > Kent Gold > Reference > Monitor Audio Studio 20 SE
Got it. Thank you.
I add HF low pass filters and that indeed seems to reduce the cpu load.
However, the "Audio Startup Time" didn't help with the drop outs. I also bought 16Gb ram for the server and that didn't help either. I still have drop outs for buffer size > 24 but as I said earlier, these only happen with 96k, 192k flac files up-sampled to DSD128 or DSD256. I am trying to understand why it is the case. Any hints ?
Ciao, Marco.
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction."
— E. F. Schumacher (mis-attributed to A. Einstein)
________________________________________________________________________________
Autore della patch R2 per Squeezelite e del plugin C-3PO. note libere
Logitech media Server 7.9 > miniPc + squeezelite-R2 / SB+ > "Lu Scalmentu" NOS R2R DAC by TubeOne/ AudioResearch DAC 1-20 >
Klimo Merlino Gold TPS > DIS Interconnect > Kent Gold > Reference > Monitor Audio Studio 20 SE
Ci sono attualmente 4 utenti che stanno visualizzando questa discussione. (0 utenti e 4 ospiti)