From 39529204925c95c1ae38fee25df334f3c3a1a4a7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 27 Aug 2014 19:11:55 +0200 Subject: Playlist: use std::chrono::duration for Seek*() --- src/queue/Playlist.hxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/queue/Playlist.hxx') 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; -- cgit v1.2.3