mattgallagher / AudioStreamer

A streaming audio player class (AudioStreamer) for Mac OS X and iPhone.
http://cocoawithlove.com
1.93k stars 553 forks source link

Added hintForMimeType: method #86

Open andybee opened 10 years ago

andybee commented 10 years ago

Several years later, I really should get around to submitting this as a pull request!

I've added a hintForMimeType: method which returns an appropriate AudioFileTypeID hint for a valid audio file format MIME type, as suggested in the current codebase comments. Also modified handleReadFromStream:eventType: to utilise this new method.

I retained the old hintForFileExtension: method in the code base as it is perfectly functional and, in some cases, may be preferred to using the MIME type detection.