Hacker GitHub

← All repos

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

Mentions per year 8 mentions · busiest year 2022 (3)
20082026
  1. …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.
  2. 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…
  3. 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
  4. …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]…
  5. I meant https://github.com/RustAudio/cpal (should've checked).
  6. …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
  7. …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