Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dantecatalfamo/sndio-zig
- Owner: dantecatalfamo
- Created: 2022-01-28T22:10:16.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-14T19:01:23.000Z (over 2 years ago)
- Last Synced: 2024-11-15T11:36:24.005Z (about 2 months ago)
- Topics: bindings, freebsd, linux, openbsd, sndio, zig
- Language: Zig
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-zig - sndio-zig๐๏ธsndio bindings for zig
README
# sndio-zig
[sndio](https://sndio.org/) bindings for zigProvides 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);
[...]
}
```