Class CdflCodec
CD FLAC codec ('cdfl'), matching MAME's chd_cd_flac_compressor: the CD audio
portion (frames × 2352 bytes) is encoded as raw FLAC frames (no stream header,
little-endian samples, 2ch/16-bit/44100 Hz, 2352 samples per frame — MAME's cdfl
blocksize) and the subcode portion (frames × 96 bytes) is deflated and appended. The
result is [FLAC frames][deflated subcode], decodable by MAME/chdman and
CHDSharpLib.
public sealed class CdflCodec : IChdCodec
- Inheritance
-
CdflCodec
- Implements
- Inherited Members
Constructors
CdflCodec(uint)
Creates a CD FLAC codec for CD-sized hunks.
public CdflCodec(uint hunkBytes)
Parameters
hunkBytesuintHunk size in bytes; must be a multiple of the CD frame size.
Properties
Tag
The four-character codec tag (see CodecTags).
public uint Tag { get; }
Property Value
Methods
Compress(byte[])
Compresses a full hunk. Returns null when the codec does not reduce the size.
public byte[]? Compress(byte[] data)
Parameters
databyte[]
Returns
- byte[]