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

decoder/mad: call TagHandler::OnAudioFormat()

parent 0d0569b9
...@@ -1060,6 +1060,14 @@ mad_decoder_scan_stream(InputStream &is, TagHandler &handler) noexcept ...@@ -1060,6 +1060,14 @@ mad_decoder_scan_stream(InputStream &is, TagHandler &handler) noexcept
if (!data.total_time.IsNegative()) if (!data.total_time.IsNegative())
handler.OnDuration(SongTime(data.total_time)); handler.OnDuration(SongTime(data.total_time));
try {
handler.OnAudioFormat(CheckAudioFormat(data.frame.header.samplerate,
SampleFormat::S24_P32,
MAD_NCHANNELS(&data.frame.header)));
} catch (...) {
}
return true; return true;
} }
......
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