07-22-2020, 07:52 PM
They are separate from one another and serve different purposes. The audio buffer queues up decoded PCM samples for delivery to the audio device. The input buffer queues up whole un-decoded files into a buffer cache.
Thank you for your donation!
Sound Tweak Rpi4
|
07-22-2020, 07:52 PM
They are separate from one another and serve different purposes. The audio buffer queues up decoded PCM samples for delivery to the audio device. The input buffer queues up whole un-decoded files into a buffer cache.
07-22-2020, 08:01 PM
I agree with you Kent, it’s not the way I thought it would work.
07-22-2020, 08:31 PM
(07-22-2020, 08:01 PM)kit1cat Wrote: I agree with you Kent, it’s not the way I thought it would work. It can't cache the whole playlist in advance because it could end up purging stuff from the cache before it has been played. I haven't had the time to pull the mpd git repo and grep it to see where the cache methods are being called from. I couldn't find it with a brief look. Phil
07-22-2020, 08:35 PM
Right, it's not as simple as it would seem. The other question it begs is whether it's effective when either MPD random play or auto-shuffle random play are active. Auto-shuffle in particular is only adding 2 tracks to the Playlist.
07-22-2020, 09:27 PM
It definitely ain't broke as is. Very much enjoying the sound over here. Playing through my entire Mercury Living Presence collection. Tended to avoid many of the titles previously. They sound great with MPD 0.22 . My system has never sounded better.
07-22-2020, 10:06 PM
@philrandal
I don't disagree with what you said but I was strongly influenced by the documentation language such as "The input cache prefetches queued song files before they are going to be played", "by prefetching several songs at a time..." and "bulk transfers may be faster and more energy efficient than loading small chunks on-the-fly". I don't think the docs make sense now that I've reread the section and I'll be interested to hear what you make of the code itself. Practically, I don't notice any particular advantage to the cache when, for example, I play three consecutive tracks in the queue one after the other and then jump back to the first. I'd expect the first track to start quicker because it's still cached. I believe it is because the mem usage kept growing with each track. Didn't notice an improvement. This suggests to me the cache need not be very big if size confers no advantage. I can't help also but wonder what and how good the garbage collection routine is ("If the cache grows larger than that, older files will be evicted.") Somehow a circular buffer would seem like a desirable solution. Regards, Kent
07-22-2020, 10:23 PM
I often get problems with my WiFi, signal breakup etc. Hoping this input cache could solve the problem, similar to how the buffer works for streaming video.
07-22-2020, 10:59 PM
(07-22-2020, 10:23 PM)kit1cat Wrote: I often get problems with my WiFi, signal breakup etc. Hoping this input cache could solve the problem, similar to how the buffer works for streaming video. If WiFi signal strength is the problem, try 5G Hz band. The reason is that the very short RPi onboard antenna is not good for 2.4G WiFi. Another work around is to use HomePlug Ethernet bridge. (07-22-2020, 10:59 PM)efung Wrote:(07-22-2020, 10:23 PM)kit1cat Wrote: I often get problems with my WiFi, signal breakup etc. Hoping this input cache could solve the problem, similar to how the buffer works for streaming video. Thanks for your suggestions, I use a USB wifi adaptor on the end of a extension lead (pi in metal case). I have a very good signal strength, I think the problem is more about speed, I have re positioned by wifi extender (using ipad to check speed) and I hope that has helped with the problem. (07-22-2020, 10:50 AM)TheOldPresbyope Wrote: @DRONE7Yes...odder than an odd thing. if you know your Blackadder... Reboots and reloads of updates seem to play havoc with the settings. Sometimes it is clean and with wonderful diction...next it's heavily bass thumping.... https://www.prestomusic.com/classical/pr...world-wags Bob
----------
bob |
« Next Oldest | Next Newest »
|