public class FrameHeader extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEBUG_LEV
For Debugging: Higher level equals more debug statements
|
static int |
MAX_HEADER_SIZE
Maximum size a header can be according to FLAC specification.
|
static short |
syncCode
Synchronization code used at beginning of frame(low-order 14 bits
used)
|
| Constructor and Description |
|---|
FrameHeader()
Constructor creates a new FrameHeader object which is ready to
generate headers.
|
| Modifier and Type | Method and Description |
|---|---|
EncodedElement |
createHeader(boolean fixBlock,
int blockSize,
int sampleRate,
EncodingConfiguration.ChannelConfig channelAssign,
int sampleSize,
long frameNumber,
int channelCount,
EncodedElement result)
Create the header for a frame with the given parameters.
|
public static int DEBUG_LEV
public static final int MAX_HEADER_SIZE
public static final short syncCode
public FrameHeader()
public EncodedElement createHeader(boolean fixBlock, int blockSize, int sampleRate, EncodingConfiguration.ChannelConfig channelAssign, int sampleSize, long frameNumber, int channelCount, EncodedElement result)
fixBlock - True to use a fixed block size, false to use variable. At
this time, this *must* be set to True, as variable block size is
not yet implemented.blockSize - Block Size of this frame.sampleRate - Sample rate of this frame.channelAssign - Channel assignment used in this frame's encoding.
See EncodingConfiguration class documentation for
more information.sampleSize - Bits per sample.frameNumber - For fixed block-size encodings, this is the frame-number
starting at zero and incrementing by one. For variable
block encodings, this is the sample number of the
first sample in the frame.channelCount - Number of channels in the stream.Copyright © 2017. All rights reserved.