Fumofumotris/libs/audio_interface.zig
Julia 49b7a9f7ed Wasapi adapter
Rewriting a lot
2024-10-25 13:49:43 -05:00

13 lines
402 B
Zig

const std = @import("std");
pub const IAdapter = struct {
getOutputCount: *const fn (ptr: *anyopaque) usize,
getOutputName: *const fn (ptr: *anyopaque, index: usize) []u8,
setOutput: *const fn (output: usize) void,
};
pub const IUser = struct {
setFormat: *const fn (ptr: *anyopaque, channels: u32, sample_rate: u32) void,
render: *const fn (ptr: *anyopaque, buf: []f32) void,
};