AudioFileFormat.Type.AIFF : AudioFileFormat « javax.sound.sampled « Java by API






AudioFileFormat.Type.AIFF

  



import java.io.File;
import java.net.URL;

import javax.sound.sampled.AudioFileFormat;
import javax.sound.sampled.AudioSystem;

public class Main {
  public static void main(String[] argv) throws Exception {
    AudioFileFormat fformat = AudioSystem.getAudioFileFormat(new File(
        "audiofile"));

    fformat = AudioSystem.getAudioFileFormat(new URL(
        "http://hostname/audiofile"));

    if (fformat.getType() == AudioFileFormat.Type.AIFC) {
    } else if (fformat.getType() == AudioFileFormat.Type.AIFF) {
    } else if (fformat.getType() == AudioFileFormat.Type.AU) {
    } else if (fformat.getType() == AudioFileFormat.Type.WAVE) {
    }
  }
}

   
    
  








Related examples in the same category

1.AudioFileFormat.Type.AU
2.AudioFileFormat.Type.WAVE
3.AudioFormat.Encoding.PCM_SIGNED