WIP: better API

This commit is contained in:
2024-06-15 03:39:53 +02:00
parent 32f23541fc
commit ae6ad428ab
6 changed files with 317 additions and 159 deletions
+14
View File
@@ -154,12 +154,26 @@ ResidualCodingMethod :: enum {
RICE2,
}
/*
bit_field u32be {
last_block: bool | 1,
type: BlockType | 7,
length: u32be | 24,
}
*/
MetadataBlockHeader :: struct {
type: BlockType,
last_block: bool,
length: u32,
}
#assert(size_of(FlacHeader) == 0x2A)
FlacHeader :: struct #packed {
magic: u32be,
streaminfo_header: u32be,
streaminfo: StreamInfoBlock,
}
#assert(size_of(Seekpoint) == 18)
Seekpoint :: struct #packed {
sample_num: u64be,