List of usage examples for javax.sound.sampled AudioFileFormat.Type equals
public boolean equals(Object obj)
From source file:marytts.server.http.MaryHttpServerUtils.java
public static String getMimeType(AudioFileFormat.Type audioType) { if (audioType == AudioFileFormat.Type.WAVE) { return "audio/x-wav"; } else if (audioType == AudioFileFormat.Type.AU) { return "audio/basic"; } else if (audioType == AudioFileFormat.Type.AIFF || audioType == AudioFileFormat.Type.AIFC) { return "audio/x-aiff"; } else if (audioType.equals(MaryAudioUtils.getAudioFileFormatType("MP3"))) { return "audio/x-mpeg"; //"audio/x-mp3; //Does not work for Internet Explorer" }//from www. j a v a2 s.c o m return "audio/basic"; // this is probably wrong but better than text/plain... }