mpdas
mpdas copied to clipboard
mpdas doesn't use mpd's idle feature
See http://git.musicpd.org/cgit/master/mpc.git/tree/src/idle.c for a small example of how to wait for a change to happen.
Probably not much effort, as far as I can tell, you'd only need to replace line 146 in main.cpp (usleep(500000);
) with code handeling idle.
When the "player" event happens, update.
Since that'd mean mpdas gets changes instantly, it'd update a little bit faster and do less work while waiting.
Hey, thanks for the report. This does seem pretty reasonable, but that loop is also responsible for processing cached scrobbles.
Maybe I can work out something smarter, although I believe that the gain of using mpd's idle is rather limited (unless your MPD does not run on the same host as mpdas). Nevertheless it is something that could be improved.
Is this not going to be implemented soon? Would be awesome to see this getting implemented.