Commit f5b9e3c0 authored by Max Kellermann's avatar Max Kellermann

decoder/modplug: floating point division for song duration

More exact total time.
parent ff70dbd3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment