From 157d45b80cf12785c3aa13daa041265fd4598e72 Mon Sep 17 00:00:00 2001 From: Julian Hurst Date: Wed, 20 Nov 2024 18:05:07 +0100 Subject: Update simple.ha for new api --- cmd/example/simple.ha | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/example/simple.ha b/cmd/example/simple.ha index 3a2a32b..98aa607 100644 --- a/cmd/example/simple.ha +++ b/cmd/example/simple.ha @@ -1,6 +1,8 @@ use midi; +use os; export fn main() void = { + const th = midi::hchunk { chk = midi::HEADERCHUNK, format = 0, @@ -12,6 +14,6 @@ export fn main() void = { defer midi::finishtrack(tc); midi::noteon(&tc, 0, midi::note::C); midi::noteoff(&tc, 4, midi::note::C); - midi::writeheader(th); - midi::writechunk(tc); + midi::writeheader(os::stdout, th); + midi::writechunk(os::stdout, tc); }; -- cgit v1.2.3