{"repo":"RustAudio/cpal","free":true,"listed":false,"github":"https://github.com/RustAudio/cpal","clone":"git clone https://github.com/RustAudio/cpal.git","description":"Low-level cross-platform audio I/O library in Rust","language":"Rust","stars":3900,"topics":["rust","audio","sound"],"license":"Apache-2.0","category":"media-processing","readme_excerpt":"CPAL - Cross-Platform Audio Library Low-level library for audio input and output, written in Rust. For higher-level audio playback and capture, consider Rodio or similar libraries. Supported Functionality - Enumerate audio hosts, devices, and their supported stream configurations. - Look up devices by stable ID or by default input/output role. - Inspect device metadata: name, manufacturer, type, and bus type. - Build input and output streams with compile-time or runtime sample formats. - Play, pause, and query the buffer size and clock of a stream. Supported Platforms Platform Default Backend Optional Backends -------- --------------- ----------------- Android AAudio - BSD ALSA JACK, PipeWire, PulseAudio iOS CoreAudio - Linux ALSA JACK, PipeWire, PulseAudio macOS CoreAudio JACK tvOS CoreAudio - visionOS CoreAudio - WebAssembly Web Audio API Audio Worklet Windows WASAPI ASIO, JACK Linux Build Dependencies On Linux, building cpal requires the ALSA development files: libasound2-dev on Debian and Ubuntu, alsa-lib-devel on Fedora. ALSA is needed even when using JACK, PipeWire, or PulseAudio. The optional realtime-dbus feature additionally requires libdbus-1-dev (Debian/Ubuntu) or dbus-devel (Fedora). See ALSA Real-Time Priority Promotion. Minimum Supported Versions The minimum Rust version (MSRV) and minimum operating system / runtime version both depend on which audio backend and features you're using, as each platform has different dependencies: Backend Platforms MSRV Minimum OS","default_branch":null,"files":null,"tree":[],"storefront":"/r/RustAudio","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/RustAudio/cpal/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}