Registry / other / cpal
library0.18.1rscratesunverified

Low-level cross-platform audio I/O library for Rust.

# Cargo.toml [dependencies] cpal = "0.18.1"
INSTALL
IMPORT
SIG · CPAL
C
cpal
otherrustv0.18.1
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.

Stream
use cpal::Stream;

Create an audio stream.

use cpal::Stream; fn main() { let _stream = Stream::new(); }
Debug
Known issues
gotchaRequires platform-specific audio backends; may need system libraries (e.g., ALSA on Linux).
fix
Install required system dependencies (e.g., libasound2-dev on Debian).
affects: >=0.1.0
Upgrade
Version history
0.18.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Meta
1
Resources
cpal — cargo add cpal · libregistry