public class Header extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
bitsPerSample
The sample resolution.
|
int |
blockSize
The number of samples per subframe.
|
int |
channelAssignment
The channel assignment for the frame.
|
int |
channels
The number of channels (== number of subframes).
|
protected byte |
crc
CRC-8 (polynomial = x^8 + x^2 + x^1 + x^0, initialized with 0).
|
int |
frameNumber
The frame number or sample number of first sample in frame.
|
long |
sampleNumber
The sample number for the first sample in the frame.
|
int |
sampleRate
The sample rate in Hz.
|
| Constructor and Description |
|---|
Header(BitInputStream is,
byte[] headerWarmup,
StreamInfo streamInfo)
The constructor.
|
public int blockSize
public int sampleRate
public int channels
public int channelAssignment
public int bitsPerSample
public int frameNumber
public long sampleNumber
protected byte crc
public Header(BitInputStream is, byte[] headerWarmup, StreamInfo streamInfo) throws IOException, BadHeaderException
is - The InputBitStreamheaderWarmup - The header warm-up bytesstreamInfo - The FLAC Stream InfoIOException - Thrown on error reading InputBitStreamBadHeaderException - Thrown if header is badpublic String toString()
toString in class ObjectObject.toString()Copyright © 2004–2017. All rights reserved.