Class SequenceAudioInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class SequenceAudioInputStream
    extends javax.sound.sampled.AudioInputStream
    Author:
    lutecer
    • Constructor Summary

      Constructors 
      Constructor Description
      SequenceAudioInputStream​(javax.sound.sampled.AudioFormat audioFormat, java.util.Collection<javax.sound.sampled.AudioInputStream> audioInputStreams)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int available()  
      long getFrameLength()  
      int read()  
      int read​(byte[] abData, int nOffset, int nLength)  
      • Methods inherited from class javax.sound.sampled.AudioInputStream

        close, getFormat, mark, markSupported, read, reset, skip
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SequenceAudioInputStream

        public SequenceAudioInputStream​(javax.sound.sampled.AudioFormat audioFormat,
                                        java.util.Collection<javax.sound.sampled.AudioInputStream> audioInputStreams)
        Parameters:
        audioFormat - the audio Format
        audioInputStreams - the audio InputStreams
    • Method Detail

      • getFrameLength

        public long getFrameLength()
        Overrides:
        getFrameLength in class javax.sound.sampled.AudioInputStream
        Returns:
        frame length
      • read

        public int read()
                 throws java.io.IOException
        Overrides:
        read in class javax.sound.sampled.AudioInputStream
        Returns:
        the byte read
        Throws:
        java.io.IOException - the IOException
      • read

        public int read​(byte[] abData,
                        int nOffset,
                        int nLength)
                 throws java.io.IOException
        Overrides:
        read in class javax.sound.sampled.AudioInputStream
        Parameters:
        abData - the data
        nOffset - the offset
        nLength - the length
        Returns:
        the bytes read
        Throws:
        java.io.IOException - the IOException
      • available

        public int available()
                      throws java.io.IOException
        Overrides:
        available in class javax.sound.sampled.AudioInputStream
        Returns:
        the current stream available
        Throws:
        java.io.IOException - the IOException