emms-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emms-help] MPD and shuffling playlists


From: Tassilo Horn
Subject: Re: [emms-help] MPD and shuffling playlists
Date: Wed, 06 May 2009 15:57:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux)

Michael Olson <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]