Fumofumotris/libs/audio_interface.zig

13 lines
402 B
Zig
Raw Permalink Normal View History

2024-10-25 18:49:43 +00:00
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,
};