MPD and shuffling playlists

View: New views
3 Messages — Rating Filter:   Alert me  

MPD and shuffling playlists

by Tassilo Horn-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I've recently switched to mpd / emms-player-mpd, mostly because it's
much faster while reading tags.  (I don't carry my whole music
collection on my laptop, but frequently copy big parts of it from and to
an external HDD.)

While I'm quite satisfied with mpd, I think I've spotted a little bug.
I added several albums to the playlist and shuffled the tracks using
`emms-shuffle'.  After that, the playlist was shuffled, but mpd played
the tracks in the original order and thus emms always showed the wrong
track infos (and submitted wrong informations to last.fm, etc.).

When I noticed it I executed `emms-player-mpd-connect' and the original
order was restored in the emms playlist.

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...

Bye,
Tassilo
--
      "DRM manages rights in the same way a jail manages freedom"


_______________________________________________
Emms-help mailing list
Emms-help@...
http://lists.gnu.org/mailman/listinfo/emms-help

Re: MPD and shuffling playlists

by Michael Olson-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tassilo Horn <tassilo@...> writes:

> While I'm quite satisfied with mpd, I think I've spotted a little bug.
> I added several albums to the playlist and shuffled the tracks using
> `emms-shuffle'.  After that, the playlist was shuffled, but mpd played
> the tracks in the original order and thus emms always showed the wrong
> track infos (and submitted wrong informations to last.fm, etc.).
>
> When I noticed it I executed `emms-player-mpd-connect' and the
> original order was restored in the emms playlist.
>
> 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.

--
|       Michael Olson  |  FSF Associate Member #652     |
| http://mwolson.org/  |  Hobbies: Lisp, HCoop          |
| Projects: Emacs, Muse, ERC, EMMS, ErBot, DVC, Planner |
`-------------------------------------------------------'


_______________________________________________
Emms-help mailing list
Emms-help@...
http://lists.gnu.org/mailman/listinfo/emms-help

Re: MPD and shuffling playlists

by Tassilo Horn-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Michael Olson <mwolson@...> 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
Emms-help@...
http://lists.gnu.org/mailman/listinfo/emms-help