Class LawDecoder
java.lang.Object
de.pottgames.tuningfork.decoder.LawDecoder
- All Implemented Interfaces:
AiffDecoder, WavDecoder, Closeable, AutoCloseable
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionLawDecoder(int channels, int sampleRate, LawDecoder.Encoding encoding, boolean bigEndian) -
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
-
Constructor Details
-
LawDecoder
-
-
Method Details
-
setup
- Specified by:
setupin interfaceAiffDecoder- Specified by:
setupin interfaceWavDecoder
-
read
- Specified by:
readin interfaceAiffDecoder- Specified by:
readin interfaceWavDecoder- Throws:
IOException
-
inputBitsPerSample
public int inputBitsPerSample()- Specified by:
inputBitsPerSamplein interfaceAiffDecoder- Specified by:
inputBitsPerSamplein interfaceWavDecoder
-
outputBitsPerSample
public int outputBitsPerSample()- Specified by:
outputBitsPerSamplein interfaceAiffDecoder- 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 interfaceAiffDecoder- Specified by:
outputPcmDataTypein interfaceWavDecoder
-
bytesRemaining
public long bytesRemaining()- Specified by:
bytesRemainingin interfaceWavDecoder
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-