[fix] detect wav codec by mimetype
[fix] detect ape codec by mimetype
Merge pull request #2140 from ulion/wav_codec_mimetype_detect

[fix] detect wav codec by mimetype