Replay from memory

Cool stuff you can do with MPD. A place for you to put your hacks and patches, or be inspired by others'.
Post Reply
nbpf
Posts: 56
Joined: June 17th, 2014, 6:45 am

Replay from memory

Post by nbpf » October 14th, 2015, 7:27 am

The default values for audio_buffer_size and buffer_before_play are 4096 and 10%. Is it possible to set MPD to replay from memory by increasing the buffer size to, say 1GB and the value of buffer_before_play to 100%? Is this meaningful on a dedicated music server? How do optimal values of audio_buffer_size and buffer_before_play relate to RAM size or other relevant hardware parameters? Thanks, nbpf

max
Forum team
Posts: 825
Joined: January 15th, 2013, 3:43 pm

Re: Replay from memory

Post by max » October 16th, 2015, 3:31 pm

That may work, but it means that MPD will not start playback until it has read & decoded everything. Which may take longer that you're willing to wait when you press "play".

nbpf
Posts: 56
Joined: June 17th, 2014, 6:45 am

Re: Replay from memory

Post by nbpf » October 16th, 2015, 8:24 pm

max wrote:That may work, but it means that MPD will not start playback until it has read & decoded everything. Which may take longer that you're willing to wait when you press "play".
I do not mind waiting but the upper limit for audio_buffer_size seems to be 65536. With higher values MPD fails to start but no errors are logged in /var/log/mpd/mpd.log. With audio_buffer_size set to 65536 and with buffer_before_play set at 100% there is no perceivable delay with respect to the default values. Why isn't it possible to set audio_buffer_size to values higher than 65536?

Post Reply