|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kc7bfi.jflac.frame.Header
public class Header
Frame header class.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
Header(BitInputStream is,
byte[] headerWarmup,
StreamInfo streamInfo)
The constructor. |
|
| Method Summary | |
|---|---|
String |
toString()
Return a descriptive string for this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int blockSize
public int sampleRate
public int channels
public int channelAssignment
public int bitsPerSample
public int frameNumber
public long sampleNumber
protected byte crc
| Constructor Detail |
|---|
public Header(BitInputStream is,
byte[] headerWarmup,
StreamInfo streamInfo)
throws IOException,
BadHeaderException
is - The InputBitStreamheaderWarmup - The header warm-up bytesstreamInfo - The FLAC Stream Info
IOException - Thrown on error reading InputBitStream
BadHeaderException - Thrown if header is bad| Method Detail |
|---|
public String toString()
toString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||