diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-07-07 15:30:19 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-07-07 15:30:19 +1000 |
| commit | b6e0e0dd4a177614797b6c6ac3b0c213d5a56f8a (patch) | |
| tree | 1bf97a9455e27840c4c6d65bc9cc9832e8379dea /src/database/include/track.hpp | |
| parent | 5af0ff2972023f35d8930ab3189cf04f6d9ff21b (diff) | |
| parent | 39f7545cd5ef7a30bbd482f3579df7744c6b688d (diff) | |
| download | tangara-fw-b6e0e0dd4a177614797b6c6ac3b0c213d5a56f8a.tar.gz | |
Merge branch 'functional-playing'
Diffstat (limited to 'src/database/include/track.hpp')
| -rw-r--r-- | src/database/include/track.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/database/include/track.hpp b/src/database/include/track.hpp index e3f94db4..620fc59e 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, }; /* @@ -67,6 +68,8 @@ class TrackTags { std::optional<int> sample_rate; std::optional<int> bits_per_sample; + std::optional<int> duration; + auto set(const Tag& key, const std::string& val) -> void; auto at(const Tag& key) const -> std::optional<shared_string>; auto operator[](const Tag& key) const -> std::optional<shared_string>; |
