Reorganised Vorbis Comment parsing into own type

- Added FileType to Metadata to distinguish between FLAC and OGG
- TODO: fix ALAC files being identified as AAC
This commit is contained in:
David Howden
2015-05-24 10:44:45 +10:00
parent 77d9aa6414
commit 4c2b34fa94
8 changed files with 262 additions and 211 deletions
+2 -1
View File
@@ -151,7 +151,8 @@ func (m metadataMP4) readAtoms(r io.ReadSeeker) error {
}
}
func (metadataMP4) Format() Format { return MP4 }
func (metadataMP4) Format() Format { return MP4 }
func (metadataMP4) FileType() FileType { return AAC }
func (m metadataMP4) Raw() map[string]interface{} { return m }