add sdl3
Needed to change to zig 0.15.2 as well, didn't work with 0.16
This commit is contained in:
@@ -55,7 +55,18 @@ pub fn main() !void {
|
||||
.FrameMetadataLength = 0,
|
||||
};
|
||||
|
||||
const content = try std.fs.cwd().readFileAlloc("california-1080-uyvy.yuv", allocator, .unlimited);
|
||||
// 0.15
|
||||
const content = try std.fs.cwd().readFileAlloc(
|
||||
allocator,
|
||||
"california-1080-uyvy.yuv",
|
||||
std.math.maxInt(usize),
|
||||
);
|
||||
// 0.16
|
||||
// const content = try std.fs.cwd().readFileAlloc(
|
||||
// "california-1080-uyvy.yuv",
|
||||
// allocator,
|
||||
// .unlimited,
|
||||
// );
|
||||
defer allocator.free(content);
|
||||
|
||||
const audio_samples = 800;
|
||||
|
||||
Reference in New Issue
Block a user