Package com.sun.media.sound

Examples of com.sun.media.sound.WaveFileReader


  public static WaveData create(URL path) {
    try {
      // due to an issue with AudioSystem.getAudioInputStream
      // and mixing unsigned and signed code
      // we will use the reader directly
      WaveFileReader wfr = new WaveFileReader();
      return create(wfr.getAudioInputStream(new BufferedInputStream(path.openStream())));
    } catch (Exception e) {
      org.lwjgl.LWJGLUtil.log("Unable to create from: " + path + ", " + e.getMessage());
      return null;
    }   
  }
View Full Code Here

TOP

Related Classes of com.sun.media.sound.WaveFileReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.