From f5b9e3c064977e29af927caef94538b4aa402464 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 14 Nov 2009 22:27:27 +0100 Subject: decoder/modplug: floating point division for song duration More exact total time. --- src/decoder/modplug_plugin.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/decoder') diff --git a/src/decoder/modplug_plugin.c b/src/decoder/modplug_plugin.c index 4c3302383..3a886471a 100644 --- a/src/decoder/modplug_plugin.c +++ b/src/decoder/modplug_plugin.c @@ -130,10 +130,8 @@ mod_decode(struct decoder *decoder, struct input_stream *is) 1.0 / ((audio_format.bits * audio_format.channels / 8.0) * (float)audio_format.sample_rate); - total_time = ModPlug_GetLength(f) / 1000; - decoder_initialized(decoder, &audio_format, - is->seekable, total_time); + is->seekable, ModPlug_GetLength(f) / 1000.0); total_time = 0; -- cgit v1.2.3