diff options
author | Max Kellermann <max@duempel.org> | 2009-11-14 22:27:27 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-14 22:27:27 +0100 |
commit | f5b9e3c064977e29af927caef94538b4aa402464 (patch) | |
tree | 70dafbe108deaa2dd9b640ae289d2b0cd099524e /src | |
parent | ff70dbd316c12bf8c1edc140f0a73f0c53b81e43 (diff) | |
download | mpd-f5b9e3c064977e29af927caef94538b4aa402464.tar.gz mpd-f5b9e3c064977e29af927caef94538b4aa402464.tar.xz mpd-f5b9e3c064977e29af927caef94538b4aa402464.zip |
decoder/modplug: floating point division for song duration
More exact total time.
Diffstat (limited to 'src')
-rw-r--r-- | src/decoder/modplug_plugin.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; |