#sound #audio-sound

bin+lib alsa-sys

FFI bindings for the ALSA project (Advanced Linux Sound Architecture)

16 releases

0.4.0 Dec 26, 2025
0.3.1 Dec 22, 2020
0.3.0 Apr 29, 2020
0.2.1 Mar 31, 2020
0.0.1 Dec 16, 2014

#195 in Unix APIs

Download history 91855/week @ 2025-11-17 96878/week @ 2025-11-24 95200/week @ 2025-12-01 107013/week @ 2025-12-08 112127/week @ 2025-12-15 102416/week @ 2025-12-22 99950/week @ 2025-12-29 125529/week @ 2026-01-05 123605/week @ 2026-01-12 117499/week @ 2026-01-19 115113/week @ 2026-01-26 181003/week @ 2026-02-02 142388/week @ 2026-02-09 130519/week @ 2026-02-16 157843/week @ 2026-02-23 185360/week @ 2026-03-02

644,144 downloads per month
Used in 1,169 crates (7 directly)

MIT license

475KB
15K SLoC

alsa-sys

Rust raw FFI bindings for ALSA.

To avoid too long build times, the finished binding is committed into this repository. If you would prefer to generate the bindings at build time, there is a use-bindings feature to do so.

Installing build dependencies

Debian/Ubuntu/Mint

sudo apt install libasound2-dev

Fedora/Centos

dnf install alsa-lib-devel

Regenerating bindings

To regenerate the bindings yourself, run regenerate_bindings.sh. This will generate the bindings in the build script, and run the regenerate_bindings binary, which copies the generated bindings into src/.

Dependencies

~165KB