Registry / other / alsa-sys

alsa-sys

JSON →
library0.4.0rscratesunverified

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

# Cargo.toml [dependencies] alsa-sys = "0.4.0"
INSTALL
IMPORT
SIG · ALSA-SYS
A
alsa-sys
otherrustv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

snd_pcm_open
use alsa_sys::snd_pcm_open;

Opens a default PCM device using ALSA's low-level API.

use alsa_sys::snd_pcm_open; fn main() { unsafe { let mut handle = std::ptr::null_mut(); snd_pcm_open(&mut handle, b"default\0" as *const _ as *const i8, 0, 0); } }
Debug
Known issues
gotchaRequires ALSA development libraries installed on the system.
fix
Install `libasound2-dev` on Debian/Ubuntu or `alsa-lib-devel` on Fedora.
affects: >=0.4.0
Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
25
Meta
1
Amazon
1
OpenAI (training)
1
Resources
alsa-sys — cargo add alsa-sys · libregistry