diff options
author | Max Kellermann <max@duempel.org> | 2014-08-27 18:50:16 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-27 19:07:16 +0200 |
commit | 0f2a7226fb36b3b04b1fa408882a8f0920081850 (patch) | |
tree | 009050341ed7e6335c7810a1027c00d462bae38c /src/PlayerControl.hxx | |
parent | f8d0ebe92f9ceb4be761078395ef51a15fb0ae47 (diff) | |
download | mpd-0f2a7226fb36b3b04b1fa408882a8f0920081850.tar.gz mpd-0f2a7226fb36b3b04b1fa408882a8f0920081850.tar.xz mpd-0f2a7226fb36b3b04b1fa408882a8f0920081850.zip |
PlayerControl: use std::chrono::duration for Seek()
Diffstat (limited to '')
-rw-r--r-- | src/PlayerControl.hxx | 5 |
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); |