Re: AudioFileCountUserData
Re: AudioFileCountUserData
- Subject: Re: AudioFileCountUserData
- From: Jens Alfke <email@hidden>
- Date: Thu, 22 Jan 2009 12:59:08 -0800
On Jan 22, 2009, at 11:54 AM, Chris Adamson wrote: I've noticed that getting artist/album/title metadata from audio files via AudioFileGetPropertyInfo / AudioFileGetProperty works for .mp3's (in that getting the kAudioFilePropertyInfoDictionary property returns a CFDictionaryRef with non-trivial data), but not for iTunes .m4a's, for which the dictionary contains only an approximate duration.
I use QuickTime to get the metadata; this seems to work for all MP3 and AAC files. Open the file as a movie, call QTCopyMovieMetaData, then rummage through the resulting dictionary for the properties kQTMetadataKeyDisplayName, kQTMetadataKeyAlbum, kQTMetadataKeyArtist, etc. (In some cases those properties don't work, so you have to fall back to the older OSType codes kUserDataTextFullName, etc.)
—Jens |
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden