aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/DecoderControl.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-28 13:04:45 +0200
committerMax Kellermann <max@duempel.org>2014-08-28 13:08:44 +0200
commitf02998b106a73281356d69cc7b19d069aea8cf0d (patch)
treee6a574eb9c6cf1fbe91bb92ce6261ec863b77737 /src/decoder/DecoderControl.hxx
parent127fe6ecf001a7bfb7f9a1d704d22c5a866896a5 (diff)
downloadmpd-f02998b106a73281356d69cc7b19d069aea8cf0d.tar.gz
mpd-f02998b106a73281356d69cc7b19d069aea8cf0d.tar.xz
mpd-f02998b106a73281356d69cc7b19d069aea8cf0d.zip
DecoderControl: use std::chrono::duration for start_ms and end_ms
Diffstat (limited to '')
-rw-r--r--src/decoder/DecoderControl.hxx19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/decoder/DecoderControl.hxx b/src/decoder/DecoderControl.hxx
index 7a72d1408..d1a55e7b3 100644
--- a/src/decoder/DecoderControl.hxx
+++ b/src/decoder/DecoderControl.hxx
@@ -127,21 +127,20 @@ struct DecoderControl {
DetachedSong *song;
/**
- * The initial seek position (in milliseconds), e.g. to the
- * start of a sub-track described by a CUE file.
+ * The initial seek position, e.g. to the start of a sub-track
+ * described by a CUE file.
*
* This attribute is set by Start().
*/
- unsigned start_ms;
+ SongTime start_time;
/**
- * The decoder will stop when it reaches this position (in
- * milliseconds). 0 means don't stop before the end of the
- * file.
+ * The decoder will stop when it reaches this position. 0
+ * means don't stop before the end of the file.
*
* This attribute is set by Start().
*/
- unsigned end_ms;
+ SongTime end_time;
float total_time;
@@ -356,12 +355,12 @@ public:
*
* @param song the song to be decoded; the given instance will be
* owned and freed by the decoder
- * @param start_ms see #DecoderControl
- * @param end_ms see #DecoderControl
+ * @param start_time see #DecoderControl
+ * @param end_time see #DecoderControl
* @param pipe the pipe which receives the decoded chunks (owned by
* the caller)
*/
- void Start(DetachedSong *song, unsigned start_ms, unsigned end_ms,
+ void Start(DetachedSong *song, SongTime start_time, SongTime end_time,
MusicBuffer &buffer, MusicPipe &pipe);
void Stop();