fix: don't hold onto previously decoded frames' samples to reduce mem usage

- migrate to os2
- check if the streaminfo min and max block size are within range
- use a tracking allocator for the example program
This commit is contained in:
2025-01-27 23:57:57 +02:00
parent 1142d83adb
commit 81aa8d0f68
4 changed files with 51 additions and 24 deletions
+1
View File
@@ -240,6 +240,7 @@ CueSheetTrackIndex :: struct #packed {
reserved: [3]byte,
}
@(optimization_mode="favor_size")
decode_extended_utf8 :: proc(r: ^Reader) -> (decoded_num: u64, err: Error) {
MASKX :: 0b0011_1111
MASK2 :: 0b0001_1111