diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/decoder/plugins/SidplayDecoderPlugin.cxx | 4 |
2 files changed, 6 insertions, 0 deletions
@@ -1,4 +1,6 @@ ver 0.21.14 (not yet released) +* decoder + - sidplay: show track durations in database ver 0.21.13 (2019/08/06) * input diff --git a/src/decoder/plugins/SidplayDecoderPlugin.cxx b/src/decoder/plugins/SidplayDecoderPlugin.cxx index 90d762dae..d38010872 100644 --- a/src/decoder/plugins/SidplayDecoderPlugin.cxx +++ b/src/decoder/plugins/SidplayDecoderPlugin.cxx @@ -547,6 +547,10 @@ sidplay_container_scan(Path path_fs) AddTagHandler h(tag_builder); ScanSidTuneInfo(info, i, n_tracks, h); + const SignedSongTime duration = get_song_length(tune); + if (!duration.IsNegative()) + h.OnDuration(SongTime(duration)); + char track_name[32]; /* Construct container/tune path names, eg. Delta.sid/tune_001.sid */ |