mpdas icon indicating copy to clipboard operation
mpdas copied to clipboard

mpdas doesn't use mpd's idle feature

Open vifino opened this issue 9 years ago • 2 comments

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.

vifino avatar Dec 01 '15 13:12 vifino

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.

hrkfdn avatar Dec 02 '15 13:12 hrkfdn

Is this not going to be implemented soon? Would be awesome to see this getting implemented.

UtkarshVerma avatar Apr 27 '20 04:04 UtkarshVerma