Add note about current approach of detecting aac vs alac

Signed-off-by: Simon Luijk <simon@simonluijk.com>
This commit is contained in:
Simon Luijk 2013-05-30 09:26:57 +02:00
parent ffe65648d2
commit 79f56adb12

View file

@ -885,6 +885,8 @@ class MediaFile(object):
raise FileTypeError('file type unsupported by Mutagen')
elif type(self.mgfile).__name__ == 'M4A' or \
type(self.mgfile).__name__ == 'MP4':
# This hack differentiates aac and alac until we find a more
# deterministic approach.
if hasattr(self.mgfile.info, 'sample_rate') and \
self.mgfile.info.sample_rate > 0:
self.type = 'aac'