RustAudio/cpal
View on GitHub ↗ ★ 4,016 Rust
Low-level cross-platform audio I/O library in Rust
8 mentions on Hacker News by 8 people: 1 story, 7 comments · first 2019-11-18 · latest 2025-09-30
20082026
-
…FLAC and fetches metadata from MusicBrainz. The next step is to play it. I looked into using cpal ( https://github.com/RustAudio/cpal ), but I feel like using low-level audio API for each platform is a better approach for learning.
comment by bloomca · 2025-09-30 · in Ask HN: What are you working on? (September 2025) -
The other linked "oh fuck" article https://ghuntley.com/oh-fuck/ where it supposedly converts https://github.com/RustAudio/cpal at least has a linked video. As far as I can see, based on that video's file tree/Haskell files - its not…
comment by Snuggly73 · 2025-03-01 · in Yes, Claude Code can decompile itself. Here's the source code -
Listen close, please. The end goal of AI coding assistants is not > convert this rust library at https://github.com/RustAudio/cpal/tree/master to a haskell library using ghc2024. The end goal is something more like > Build me a website…
comment by mouse_ · 2025-01-13 · in An "oh fuck" moment in time -
…mode gui + plotting) 4) better errors and more modern language [0] https://openframeworks.cc/ [1] https://github.com/RustAudio/cpal/ [2] https://github.com/l1npengtul/nokhwa [3] https://github.com/twistedfall/opencv-rust [4]…
comment by pzo · 2023-03-05 · in Nannou – An open-source creative-coding framework for Rust -
I meant https://github.com/RustAudio/cpal (should've checked).
comment by zduny · 2022-10-10 · in I made a guitar tuner app using Flutter and Rust -
…and mutexes are a forcing function that naturally results in cleaner code (cpal's ALSA code ( https://github.com/RustAudio/cpal/blob/master/src/host/alsa/... ) is beautiful and statically marks state as thread-local or shared, RtAudio's…
comment by nyanpasu64 · 2022-04-02 · in Why Rust mutexes look like they do -
…This solution isn't really good tho. [1]: https://github.com/rust-lang/crates.io/issues/849 [2]: https://github.com/RustAudio/cpal/pull/337
comment by est31 · 2019-11-18 · in Publish NPM Package with GitHub Actions