diff options
author | Max Kellermann <max@duempel.org> | 2014-08-26 11:41:48 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-26 11:41:48 +0200 |
commit | 93858bf26247d395675a281baec2bf3e9c11ad85 (patch) | |
tree | dd83e2d0f0350a8c027b7ddaaaacc05b5a83e16c /src | |
parent | f64da46a984cd4ea4f512b13af722b54c33fc1f6 (diff) | |
download | mpd-93858bf26247d395675a281baec2bf3e9c11ad85.tar.gz mpd-93858bf26247d395675a281baec2bf3e9c11ad85.tar.xz mpd-93858bf26247d395675a281baec2bf3e9c11ad85.zip |
decoder/wildmidi: use integer seek times
Diffstat (limited to '')
-rw-r--r-- | src/decoder/plugins/WildmidiDecoderPlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/plugins/WildmidiDecoderPlugin.cxx b/src/decoder/plugins/WildmidiDecoderPlugin.cxx index a3a4b2745..08078a792 100644 --- a/src/decoder/plugins/WildmidiDecoderPlugin.cxx +++ b/src/decoder/plugins/WildmidiDecoderPlugin.cxx @@ -105,8 +105,8 @@ wildmidi_file_decode(Decoder &decoder, Path path_fs) cmd = decoder_data(decoder, nullptr, buffer, len, 0); if (cmd == DecoderCommand::SEEK) { - unsigned long seek_where = WILDMIDI_SAMPLE_RATE * - decoder_seek_where(decoder); + unsigned long seek_where = + decoder_seek_where_frame(decoder); WildMidi_FastSeek(wm, &seek_where); decoder_command_finished(decoder); |