Closed casedefault closed 7 years ago
Indeed, I never tested WAVs. I had assumed the Spotlight API would carry bit rate info for WAVs but clearly not. I will post a fix for this later.
Thanks for the detailed report!
Seems like .WAVs do indeed have audio metadata on my machine. Can you run mdls [your wav file].wav
on your machine and tell me the output? This could be a filesystem issue where I need to find another way to get metadata for things like files on SMB shares.
6fdbe73 fixes this crash; import failure will be a separate issue, if indeed audio metadata can't be accessed for files on network shares.
To reproduce:
Terminal output when launching the app from the CLI:
Notes:
DatabaseManager.getAudioMetadata
:metadataDictionary[kBitRateKey] = (MDItemCopyAttribute(mediaFileObject, "kMDItemAudioBitRate" as CFString!) as! Double) / 1000
Let me know if there's any more information I can provide.