decoder/wildmidi: call TagHandler::OnAudioFormat()

This commit is contained in:
Max Kellermann 2018-07-07 13:43:29 +02:00
parent ed6d0aa548
commit 9cf43eef67
1 changed files with 2 additions and 0 deletions

View File

@ -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);