Class FadeableAudioInputStream

java.lang.Object
java.io.InputStream
javax.sound.sampled.AudioInputStream
de.jarnbjo.util.audio.FadeableAudioInputStream
All Implemented Interfaces:
java.io.Closeable, java.lang.AutoCloseable

public class FadeableAudioInputStream
extends javax.sound.sampled.AudioInputStream
  • Field Summary

    Fields inherited from class javax.sound.sampled.AudioInputStream

    format, frameLength, framePos, frameSize
  • Constructor Summary

    Constructors
    Constructor Description
    FadeableAudioInputStream​(javax.sound.sampled.AudioInputStream audioInputStream)  
  • Method Summary

    Modifier and Type Method Description
    void fadeOut()  
    int read​(byte[] byteArray)  
    int read​(byte[] byteArray, int int1, int int2)  

    Methods inherited from class javax.sound.sampled.AudioInputStream

    available, close, getFormat, getFrameLength, mark, markSupported, read, reset, skip

    Methods inherited from class java.io.InputStream

    nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FadeableAudioInputStream

      public FadeableAudioInputStream​(javax.sound.sampled.AudioInputStream audioInputStream) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • fadeOut

      public void fadeOut()
    • read

      public int read​(byte[] byteArray) throws java.io.IOException
      Overrides:
      read in class javax.sound.sampled.AudioInputStream
      Throws:
      java.io.IOException
    • read

      public int read​(byte[] byteArray, int int1, int int2) throws java.io.IOException
      Overrides:
      read in class javax.sound.sampled.AudioInputStream
      Throws:
      java.io.IOException