StreamInfoBlock class
Decoded FLAC STREAMINFO metadata block.
The STREAMINFO block contains essential information about the audio stream and must be the first metadata block in every FLAC file.
- Inheritance
-
- Object
- MetadataBlock
- StreamInfoBlock
Constructors
- StreamInfoBlock({required bool isLast, required int length, required int minBlockSize, required int maxBlockSize, required int minFrameSize, required int maxFrameSize, required int sampleRate, required int channels, required int bitsPerSample, required int totalSamples, required Uint8List md5})
-
const
Properties
- bitsPerSample → int
-
Bits per sample (4–32).
final
- blockType → int
-
The block type identifier (see BlockType).
finalinherited
- channels → int
-
Number of audio channels (1–8).
final
- duration → Duration
-
Duration of the stream, or Duration.zero if totalSamples is 0.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLast → bool
-
Whether this is the last metadata block before the audio frames.
finalinherited
- length → int
-
The length of the block data in bytes (excluding the 4-byte header).
finalinherited
- maxBlockSize → int
-
Maximum block size (in samples) used in the stream.
final
- maxFrameSize → int
-
Maximum frame size in bytes (0 if unknown).
final
- md5 → Uint8List
-
MD5 signature of the unencoded audio data.
final
- md5Hex → String
-
Returns a hex string representation of the MD5 signature.
no setter
- minBlockSize → int
-
Minimum block size (in samples) used in the stream.
final
- minFrameSize → int
-
Minimum frame size in bytes (0 if unknown).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRate → int
-
Audio sample rate in Hz (1–655350).
final
- totalSamples → int
-
Total number of inter-channel samples in the stream.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parse(
bool isLast, int length, Uint8List data) → StreamInfoBlock -
Parses a StreamInfoBlock from its raw
databytes.