Commit 9cf43eef authored by Max Kellermann's avatar Max Kellermann

decoder/wildmidi: call TagHandler::OnAudioFormat()

parent ed6d0aa5
......@@ -134,6 +134,8 @@ wildmidi_scan_file(Path path_fs, TagHandler &handler) noexcept
return false;
}
handler.OnAudioFormat(wildmidi_audio_format);
const auto duration =
SongTime::FromScale<uint64_t>(info->approx_total_samples,
wildmidi_audio_format.sample_rate);
......
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