Example usage for javax.sound.sampled AudioFileFormat.Type equals

List of usage examples for javax.sound.sampled AudioFileFormat.Type equals

Introduction

In this page you can find the example usage for javax.sound.sampled AudioFileFormat.Type equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

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...
}