PlayerControl: use std::chrono::duration for Seek()

This commit is contained in:
Max Kellermann
2014-08-27 18:50:16 +02:00
parent f8d0ebe92f
commit 0f2a7226fb
4 changed files with 17 additions and 14 deletions

View File

@@ -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);