cpal
Cross-platform audio I/O library in pure Rust (by RustAudio)
rubato
An asyncronous resampling library written in Rust (by HEnquist)
Our great sponsors
cpal | rubato | |
---|---|---|
10 | 2 | |
1,846 | 89 | |
3.8% | - | |
5.4 | 4.2 | |
3 days ago | 26 days ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cpal
Posts with mentions or reviews of cpal.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-04.
- Nannou – An open-source creative-coding framework for Rust
-
Creating an Audio File Player from scratch
There is a cross-platform audio library for Rust: cpal https://github.com/rustaudio/cpal
-
Modify pitch and volume while a sound file is playing
I had to do something similar to this a while back. I used cpal.
-
What’s everyone working on this week (including AoC, 51/2021)?
Working on a live performance software that would let our band have live real-time practices over the internet. Top priority is minimum latency, so I'm trying to hook it up through ASIO. Not much luck yet. I've tried cpal, but I've run into numerous known random bugs (and some versions don't compile for me). At least I confirmed that I can push the audio through a TCP socket successfully.
-
Hey Rustaceans! Got an easy question? Ask here (7/2021)!
you need to use a "loopback" device, as shown here - https://github.com/RustAudio/cpal/pull/478 (note, ive only tested this on windows - if its not supported on linux you could always plug your sound card output into its line-in/mic jack)
rubato
Posts with mentions or reviews of rubato.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-01-24.
-
Symphonia v0.5.2: Audio decoding in safe Rust, now often faster than FFmpeg!
Regarding improving the API for 0.6, something that bugs me about the current Rust audio ecosystem is that everyone is reinventing the wheel with their own audio buffer types each with their own API that downstream users have to learn. This makes it more of a hassle to pass audio data from one library to another than it should be. I've been contributing to the audio crate which provides buffer structs and traits for working with audio buffers with a common API regardless of their layout in memory. I have a work-in-progress branch for Rubato refactoring it to use the audio crate, though there's a bit more work to do in the audio crate to complete that. Would you be interested in using the audio crate in Symphonia?
-
Modify pitch and volume while a sound file is playing
If you want to change tempo and pitch together, that's resampling. You can use Rubato's asynchronous resamplers for that.
What are some alternatives?
When comparing cpal and rubato you can also consider the following projects:
rodio - Rust audio playback library
swyh-rs - Stream What You Hear written in rust, inspired by SWYH.
openal-rs
rust-vst2 - VST 2.4 API implementation in rust. Create plugins or hosts.
rust-cookbook - https://rust-lang-nursery.github.io/rust-cookbook
sudo.rs
dotfiles - Configs for apps I care about
meter - Real-time CLI level meter built in Rust.
LibRapidRust - An optimised derivative of the LibRapid C++ library. Made with love for mathematics and computer science.
loopers - Loopers is graphical live looper, written in Rust, designed for ease of use and rock-solid stability