Class WavFmtChunk
java.lang.Object
de.pottgames.tuningfork.decoder.WavFmtChunk
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns cbSize or -1 if the field is not present.intReturns dwChannelMask or -1 if the field is not present.longReturns nAvgBytesPerSec.intReturns nBlockAlign.intReturns nChannels.longReturns nSamplesPerSec.intgetRaw(int index) Returns a byte (int 0 - 255) of the original chunk data as read from the stream.intReturns subFormatDataCode or -1 if the field is not present.intReturns wBitsPerSample.intReturns wFormatTag.intReturns wValidBitsPerSample or -1 if the field is not present.
-
Field Details
-
length
public final int length
-
-
Constructor Details
-
WavFmtChunk
public WavFmtChunk(int[] data)
-
-
Method Details
-
getCbSize
public int getCbSize()Returns cbSize or -1 if the field is not present.- Returns:
- cbSize or -1 if the field is not present
-
getwValidBitsPerSample
public int getwValidBitsPerSample()Returns wValidBitsPerSample or -1 if the field is not present.- Returns:
- wValidBitsPerSample or -1 if the field is not present
-
getDwChannelMask
public int getDwChannelMask()Returns dwChannelMask or -1 if the field is not present.- Returns:
- dwChannelMask or -1 if the field is not present
-
getSubFormatDataCode
public int getSubFormatDataCode()Returns subFormatDataCode or -1 if the field is not present.- Returns:
- subFormatDataCode or -1 if the field is not present
-
getwFormatTag
public int getwFormatTag()Returns wFormatTag.- Returns:
- wFormatTag
-
getnChannels
public int getnChannels()Returns nChannels.- Returns:
- nChannels
-
getnSamplesPerSec
public long getnSamplesPerSec()Returns nSamplesPerSec.- Returns:
- nSamplesPerSec
-
getnAvgBytesPerSec
public long getnAvgBytesPerSec()Returns nAvgBytesPerSec.- Returns:
- nAvgBytesPerSec
-
getnBlockAlign
public int getnBlockAlign()Returns nBlockAlign.- Returns:
- nBlockAlign
-
getwBitsPerSample
public int getwBitsPerSample()Returns wBitsPerSample.- Returns:
- wBitsPerSample
-
getRaw
public int getRaw(int index) Returns a byte (int 0 - 255) of the original chunk data as read from the stream.lengthis set to the original data length.- Parameters:
index- the index- Returns:
- an int containing the byte of the original data
-