feat: Adds Audio Channel Metadata - #1036
This commit is contained in:
committed by
Deluan Quintão
parent
0079a9b938
commit
e12a14a87d
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user