From 2f16d230025c3173cfbecc58b38d6a52b6b0f5f2 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 5 Jul 2023 20:09:03 +1000 Subject: Start on wiring up playback screen to real data --- src/database/include/track.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/database/include/track.hpp') diff --git a/src/database/include/track.hpp b/src/database/include/track.hpp index e3f94db4..87fae9b9 100644 --- a/src/database/include/track.hpp +++ b/src/database/include/track.hpp @@ -50,6 +50,7 @@ enum class Tag { kAlbum = 2, kAlbumTrack = 3, kGenre = 4, + kDuration = 5, }; /* -- cgit v1.2.3 From 39f7545cd5ef7a30bbd482f3579df7744c6b688d Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 7 Jul 2023 15:29:47 +1000 Subject: wire up the playing screen with some real data Includes implementing song duration calculation for CBR MP3 files --- src/database/include/track.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/database/include/track.hpp') diff --git a/src/database/include/track.hpp b/src/database/include/track.hpp index 87fae9b9..620fc59e 100644 --- a/src/database/include/track.hpp +++ b/src/database/include/track.hpp @@ -68,6 +68,8 @@ class TrackTags { std::optional sample_rate; std::optional bits_per_sample; + std::optional duration; + auto set(const Tag& key, const std::string& val) -> void; auto at(const Tag& key) const -> std::optional; auto operator[](const Tag& key) const -> std::optional; -- cgit v1.2.3