Package net.raphimc.audiomixer.util.io
Class SampleInputStream
java.lang.Object
java.io.InputStream
net.raphimc.audiomixer.util.io.SampleInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Constructor Summary
ConstructorsConstructorDescriptionSampleInputStream(InputStream is, AudioFormat audioFormat) SampleInputStream(AudioInputStream audioInputStream) -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
SampleInputStream
-
SampleInputStream
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
readSample
- Throws:
IOException
-
getAudioFormat
-