DecoderAPI: pass SignedSongTime to decoder_initialized()
This commit is contained in:
@@ -86,8 +86,11 @@ wildmidi_file_decode(Decoder &decoder, Path path_fs)
|
||||
return;
|
||||
}
|
||||
|
||||
decoder_initialized(decoder, audio_format, true,
|
||||
info->approx_total_samples / WILDMIDI_SAMPLE_RATE);
|
||||
const auto duration =
|
||||
SongTime::FromScale<uint64_t>(info->approx_total_samples,
|
||||
WILDMIDI_SAMPLE_RATE);
|
||||
|
||||
decoder_initialized(decoder, audio_format, true, duration);
|
||||
|
||||
DecoderCommand cmd;
|
||||
do {
|
||||
|
Reference in New Issue
Block a user