aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlayerControl.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-27 18:50:16 +0200
committerMax Kellermann <max@duempel.org>2014-08-27 19:07:16 +0200
commit0f2a7226fb36b3b04b1fa408882a8f0920081850 (patch)
tree009050341ed7e6335c7810a1027c00d462bae38c /src/PlayerControl.hxx
parentf8d0ebe92f9ceb4be761078395ef51a15fb0ae47 (diff)
downloadmpd-0f2a7226fb36b3b04b1fa408882a8f0920081850.tar.gz
mpd-0f2a7226fb36b3b04b1fa408882a8f0920081850.tar.xz
mpd-0f2a7226fb36b3b04b1fa408882a8f0920081850.zip
PlayerControl: use std::chrono::duration for Seek()
Diffstat (limited to 'src/PlayerControl.hxx')
-rw-r--r--src/PlayerControl.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/PlayerControl.hxx b/src/PlayerControl.hxx
index b60227d23..ac5e6602d 100644
--- a/src/PlayerControl.hxx
+++ b/src/PlayerControl.hxx
@@ -26,6 +26,7 @@
#include "thread/Thread.hxx"
#include "util/Error.hxx"
#include "CrossFade.hxx"
+#include "Chrono.hxx"
#include <stdint.h>
@@ -161,7 +162,7 @@ struct PlayerControl {
*/
DetachedSong *next_song;
- double seek_where;
+ SongTime seek_time;
CrossFadeSettings cross_fade;
@@ -434,7 +435,7 @@ public:
* @return true on success, false on failure (e.g. if MPD isn't
* playing currently)
*/
- bool Seek(DetachedSong *song, float seek_time);
+ bool Seek(DetachedSong *song, SongTime t);
void SetCrossFade(float cross_fade_seconds);