feat: Adds Audio Channel Metadata - #1036

This commit is contained in:
Miguel A. Arroyo
2021-08-20 17:35:59 -07:00
committed by Deluan Quintão
parent 0079a9b938
commit e12a14a87d
14 changed files with 115 additions and 12 deletions
+1
View File
@@ -29,6 +29,7 @@ var _ = Describe("Parser", func() {
Expect(m).To(HaveKeyWithValue("has_picture", []string{"true"}))
Expect(m).To(HaveKeyWithValue("duration", []string{"1.02"}))
Expect(m).To(HaveKeyWithValue("bitrate", []string{"192"}))
Expect(m).To(HaveKeyWithValue("channels", []string{"2"}))
Expect(m).To(HaveKeyWithValue("comment", []string{"Comment1\nComment2"}))
Expect(m).To(HaveKeyWithValue("lyrics", []string{"Lyrics 1\rLyrics 2"}))
Expect(m).To(HaveKeyWithValue("bpm", []string{"123"}))
@@ -37,6 +37,7 @@ int taglib_read(const char *filename, unsigned long id) {
go_map_put_int(id, (char *)"duration", props->length());
go_map_put_int(id, (char *)"lengthinmilliseconds", props->lengthInMilliseconds());
go_map_put_int(id, (char *)"bitrate", props->bitrate());
go_map_put_int(id, (char *)"channels", props->channels());
TagLib::PropertyMap tags = f.file()->properties();