From f02998b106a73281356d69cc7b19d069aea8cf0d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 28 Aug 2014 13:04:45 +0200 Subject: DecoderControl: use std::chrono::duration for start_ms and end_ms --- src/decoder/DecoderControl.hxx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'src/decoder/DecoderControl.hxx') 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(); -- cgit v1.2.3