unify mach.Call and mach.Runner into one type

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-09-23 11:25:33 -07:00 committed by Emi Gutekanst
parent 14ccd5a93c
commit 8054d03b4d
19 changed files with 125 additions and 97 deletions

View file

@ -5,9 +5,9 @@ const sysaudio = mach.sysaudio;
pub const Opus = @import("mach-opus");
pub const name = .mach_audio;
pub const Mod = mach.Mod(@This());
pub const mach_module = .mach_audio;
// TODO(object)
pub const components = .{
.samples = .{ .type = []const f32 },
.channels = .{ .type = u8 },
@ -22,7 +22,7 @@ pub const systems = .{
.audio_tick = .{ .handler = audioTick },
};
const log = std.log.scoped(name);
const log = std.log.scoped(mach_module);
// The number of milliseconds worth of audio to render ahead of time. The lower this number is, the
// less latency there is in playing new audio. The higher this number is, the less chance there is