Michael Olson <[email protected]> writes: Hi Michael,
>> What do I have to do to sync the emms playlist with the mpd playlist >> after modifications? It looks like adding >> `emms-player-mpd-sync-from-emms' to some hook... > > Yeah, it's a somewhat tricky problem. > > I come across something similar when adding tracks to the end of the > current EMMS buffer while playing it. The tracks only get sent to MPD > after it reaches the last track in the original MPD playlist. Ideally > it would send commands to just add those tracks, without disturbing > the currently-playing track. Likewise for cuts and pastes that don't > involve the current track. > > But in the case of shuffle, it seems best to just stop mpd and resync > the playlist using the function you mentioned, perhaps by means of > some hook. Yes, now I've added it to emms-player-started-hook which seems to fit most of my use cases. Before I tried adding a new hook that is called whenever the playlist is modified, but I gave up because then synching was done much to often and made emacs hang. Bye, Tassilo _______________________________________________ Emms-help mailing list [email protected] http://lists.gnu.org/mailman/listinfo/emms-help
