FlacDecoder class
Decode a Flac file by reading it frame by frame.
To use it :
.decode()to extract the mandatory metadatareadFrame()until.hasNextFrame()is false
Constructors
- FlacDecoder({required File track})
Properties
- bufferedFile ↔ Buffer
-
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- md5Input → ByteConversionSink
-
latefinal
-
output
→ AccumulatorSink<
Digest> -
final
- reader ↔ RandomAccessFile
-
latefinal
- result → FlacResult
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalSamples ↔ int
-
getter/setter pair
Methods
-
close(
) → void - Close the reader when the decoding is done
-
decode(
) → FlacResult -
decodeAll(
) → List< Samples> -
hasNextFrame(
) → bool - Return true if another frame can be decoded
-
isCorrect(
) → bool - Check that the decoded samples are correct. We compare the MD5 checksum from the block Streaminfo with the MD5 checksum of every samples
-
isFlac(
) → bool - A Flac file must start with the magic word "fLaC"
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readFrame(
) → FlacFrame -
readSeektableBlock(
int length) → List< Seekpoint> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited