decoder/wavpack: call TagHandler::OnAudioFormat()
This commit is contained in:
parent
c236a85c13
commit
d4ce6049c9
@ -598,6 +598,11 @@ wavpack_scan_file(Path path_fs, TagHandler &handler) noexcept
|
|||||||
WavpackCloseFile(wpc);
|
WavpackCloseFile(wpc);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
try {
|
||||||
|
handler.OnAudioFormat(CheckAudioFormat(wpc));
|
||||||
|
} catch (...) {
|
||||||
|
}
|
||||||
|
|
||||||
const auto duration = GetDuration(wpc);
|
const auto duration = GetDuration(wpc);
|
||||||
if (!duration.IsNegative())
|
if (!duration.IsNegative())
|
||||||
handler.OnDuration(SongTime(duration));
|
handler.OnDuration(SongTime(duration));
|
||||||
@ -622,6 +627,11 @@ wavpack_scan_stream(InputStream &is, TagHandler &handler) noexcept
|
|||||||
WavpackCloseFile(wpc);
|
WavpackCloseFile(wpc);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
try {
|
||||||
|
handler.OnAudioFormat(CheckAudioFormat(wpc));
|
||||||
|
} catch (...) {
|
||||||
|
}
|
||||||
|
|
||||||
const auto duration = GetDuration(wpc);
|
const auto duration = GetDuration(wpc);
|
||||||
if (!duration.IsNegative())
|
if (!duration.IsNegative())
|
||||||
handler.OnDuration(SongTime(duration));
|
handler.OnDuration(SongTime(duration));
|
||||||
|
Loading…
Reference in New Issue
Block a user