mirror of
https://github.com/IllusionMan1212/flac-odin.git
synced 2026-10-24 02:12:29 +00:00
WIP: better API
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user