AudioStreamer icon indicating copy to clipboard operation
AudioStreamer copied to clipboard

Added hintForMimeType: method

Open andybee opened this issue 11 years ago • 0 comments

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.

andybee avatar Feb 26 '14 11:02 andybee