aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue/Playlist.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-27 19:11:55 +0200
committerMax Kellermann <max@duempel.org>2014-08-28 06:42:19 +0200
commit39529204925c95c1ae38fee25df334f3c3a1a4a7 (patch)
tree80265280e7557858814158b7ea0a6f5f65be8847 /src/queue/Playlist.hxx
parentc2001a725978b665f0b22a4ad3865293754efd38 (diff)
downloadmpd-39529204925c95c1ae38fee25df334f3c3a1a4a7.tar.gz
mpd-39529204925c95c1ae38fee25df334f3c3a1a4a7.tar.xz
mpd-39529204925c95c1ae38fee25df334f3c3a1a4a7.zip
Playlist: use std::chrono::duration for Seek*()
Diffstat (limited to 'src/queue/Playlist.hxx')
-rw-r--r--src/queue/Playlist.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/queue/Playlist.hxx b/src/queue/Playlist.hxx
index 0f73a0513..75e861a82 100644
--- a/src/queue/Playlist.hxx
+++ b/src/queue/Playlist.hxx
@@ -29,6 +29,8 @@ class DetachedSong;
class Database;
class Error;
class SongLoader;
+class SongTime;
+class SignedSongTime;
struct playlist {
/**
@@ -251,10 +253,10 @@ public:
PlaylistResult SeekSongPosition(PlayerControl &pc,
unsigned song_position,
- float seek_time);
+ SongTime seek_time);
PlaylistResult SeekSongId(PlayerControl &pc,
- unsigned song_id, float seek_time);
+ unsigned song_id, SongTime seek_time);
/**
* Seek within the current song. Fails if MPD is not currently
@@ -265,7 +267,7 @@ public:
* current position
*/
PlaylistResult SeekCurrent(PlayerControl &pc,
- float seek_time, bool relative);
+ SignedSongTime seek_time, bool relative);
bool GetRepeat() const {
return queue.repeat;