public class MetadataBlockStreamInfo
extends java.lang.Object
Constructor and Description |
---|
MetadataBlockStreamInfo()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static int |
getByteSize()
Get the expected size of a properly formed STREAMINFO metadata block.
|
static EncodedElement |
getStreamInfo(StreamConfiguration sc,
int minFrameSize,
int maxFrameSize,
long samplesInStream,
byte[] md5Hash)
Create a FLAC StreamInfo metadata block with the given parameters.
|
public MetadataBlockStreamInfo()
public static EncodedElement getStreamInfo(StreamConfiguration sc, int minFrameSize, int maxFrameSize, long samplesInStream, byte[] md5Hash)
sc
- StreamConfiguration used in this FLAC stream.minFrameSize
- Size of smallest frame in FLAC stream.maxFrameSize
- Size of largest frame in FLAC stream.samplesInStream
- Total number of inter-channel audio samples in
FLAC stream.md5Hash
- MD5 hash of the raw audio samples.public static int getByteSize()