Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dantecatalfamo/sndio-zig

sndio bindings for zig
https://github.com/dantecatalfamo/sndio-zig

bindings freebsd linux openbsd sndio zig

Last synced: about 2 months ago
JSON representation

sndio bindings for zig

Awesome Lists containing this project

README

        

# sndio-zig
[sndio](https://sndio.org/) bindings for zig

Provides both native bindings and a zig wrapper
```zig
hdl = sio_open(...)

sio_write(hdl, arr, 5)
hdl.write(arr, 5)
```

## Importing
```zig
const addSndio = @import("sndio-zig/build.zig").addSndio;

pub fn build(b: *std.build.Builder) void {
[...]
const exe = b.addExecutable("example", "src/main.zig");
addSndio(exe);
[...]
}
```