From 6d43e934a9ac7548baa74ff151943cbfb37bc2a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Ple=C3=9F?= Date: Sun, 10 Jun 2012 22:15:29 +0200 Subject: [PATCH] changed player control to - turn off random - set crossfade to 0 --- src/de/ctdo/crashtest/mpd/MPDController.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/de/ctdo/crashtest/mpd/MPDController.java b/src/de/ctdo/crashtest/mpd/MPDController.java index 8eb38e5..2ee7446 100644 --- a/src/de/ctdo/crashtest/mpd/MPDController.java +++ b/src/de/ctdo/crashtest/mpd/MPDController.java @@ -154,10 +154,14 @@ public class MPDController implements IMPDController { try { MPDPlaylist playlist = mpd.getMPDPlaylist(); playlist.clearPlaylist(); + mpd.getMPDPlayer().setRandom(false); + mpd.getMPDPlayer().setXFade(1); } catch (MPDConnectionException e) { Logger.sLog("MPD error: " + e.getMessage()); } catch (MPDPlaylistException e) { Logger.sLog("MPD error: " + e.getMessage()); + } catch (MPDPlayerException e) { + Logger.sLog("MPD error: " + e.getMessage()); } } };