[fix] detect wav codec by mimetype

wav file on an url sometimes has no 'wav' filename extension, but correct mimetype set by server or addon should also let the codec factory does the work.