From 6ad933982f68f5fcbd1b3179bf5fed26f63aa792 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 28 Aug 2014 06:54:19 +0200 Subject: DetachedSong: use std::chrono::duration for start_ms and end_ms --- src/decoder/DecoderAPI.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder/DecoderAPI.cxx') diff --git a/src/decoder/DecoderAPI.cxx b/src/decoder/DecoderAPI.cxx index 939434f83..83acb8a89 100644 --- a/src/decoder/DecoderAPI.cxx +++ b/src/decoder/DecoderAPI.cxx @@ -521,7 +521,7 @@ decoder_data(Decoder &decoder, const auto dest = chunk->Write(dc.out_audio_format, decoder.timestamp - - dc.song->GetStartMS() / 1000.0, + dc.song->GetStartTime().ToDoubleS(), kbit_rate); if (dest.IsNull()) { /* the chunk is full, flush it */ -- cgit v1.2.3