diff options
author | Max Kellermann <max@duempel.org> | 2014-08-27 19:11:55 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-28 06:42:19 +0200 |
commit | 39529204925c95c1ae38fee25df334f3c3a1a4a7 (patch) | |
tree | 80265280e7557858814158b7ea0a6f5f65be8847 /src/Partition.hxx | |
parent | c2001a725978b665f0b22a4ad3865293754efd38 (diff) | |
download | mpd-39529204925c95c1ae38fee25df334f3c3a1a4a7.tar.gz mpd-39529204925c95c1ae38fee25df334f3c3a1a4a7.tar.xz mpd-39529204925c95c1ae38fee25df334f3c3a1a4a7.zip |
Playlist: use std::chrono::duration for Seek*()
Diffstat (limited to 'src/Partition.hxx')
-rw-r--r-- | src/Partition.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Partition.hxx b/src/Partition.hxx index 4341a9ed3..ad0187de0 100644 --- a/src/Partition.hxx +++ b/src/Partition.hxx @@ -25,6 +25,7 @@ #include "mixer/Listener.hxx" #include "PlayerControl.hxx" #include "PlayerListener.hxx" +#include "Chrono.hxx" struct Instance; class MultipleOutputs; @@ -141,15 +142,15 @@ struct Partition final : private PlayerListener, private MixerListener { } PlaylistResult SeekSongPosition(unsigned song_position, - float seek_time) { + SongTime seek_time) { return playlist.SeekSongPosition(pc, song_position, seek_time); } - PlaylistResult SeekSongId(unsigned song_id, float seek_time) { + PlaylistResult SeekSongId(unsigned song_id, SongTime seek_time) { return playlist.SeekSongId(pc, song_id, seek_time); } - PlaylistResult SeekCurrent(float seek_time, bool relative) { + PlaylistResult SeekCurrent(SignedSongTime seek_time, bool relative) { return playlist.SeekCurrent(pc, seek_time, relative); } |