Class Int24To16PcmDecoder
java.lang.Object
de.pottgames.tuningfork.decoder.Int24To16PcmDecoder
- All Implemented Interfaces:
WavDecoder, Closeable, AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongvoidclose()intintintintlongintread(byte[] output) voidsetup(InputStream stream, long streamLength) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface WavDecoder
blockAlign, blockSize
-
Field Details
-
stream
-
bytesRemaining
protected long bytesRemaining
-
-
Constructor Details
-
Int24To16PcmDecoder
public Int24To16PcmDecoder(int channels, int sampleRate)
-
-
Method Details
-
setup
- Specified by:
setupin interfaceWavDecoder
-
read
- Specified by:
readin interfaceWavDecoder- Throws:
IOException
-
inputBitsPerSample
public int inputBitsPerSample()- Specified by:
inputBitsPerSamplein interfaceWavDecoder
-
outputBitsPerSample
public int outputBitsPerSample()- Specified by:
outputBitsPerSamplein interfaceWavDecoder
-
outputChannels
public int outputChannels()- Specified by:
outputChannelsin interfaceWavDecoder
-
outputSampleRate
public int outputSampleRate()- Specified by:
outputSampleRatein interfaceWavDecoder
-
outputTotalSamplesPerChannel
public long outputTotalSamplesPerChannel()- Specified by:
outputTotalSamplesPerChannelin interfaceWavDecoder
-
outputPcmDataType
- Specified by:
outputPcmDataTypein interfaceWavDecoder
-
bytesRemaining
public long bytesRemaining()- Specified by:
bytesRemainingin interfaceWavDecoder
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOExceptionNullPointerException
-