Modify pitch and volume while a sound file is playing

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/rust

Our great sponsors
  • Scout APM - Less time debugging, more time building
  • SonarLint - Clean code begins in your IDE with SonarLint
  • SaaSHub - Software Alternatives and Reviews
  • rodio

    Rust audio playback library

    I have tried the https://crates.io/crates/rodio crate already but I did not find a way to change the parameters while the background thread is playing the song.

  • cpal

    Cross-platform audio I/O library in pure Rust

    I had to do something similar to this a while back. I used cpal.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • rubato

    An asyncronous resampling library written in Rust (by HEnquist)

    If you want to change tempo and pitch together, that's resampling. You can use Rubato's asynchronous resamplers for that.

  • creek

    Realtime disk streaming IO for audio (by MeadowlarkDAW)

    Rodio is high level and likely not really suited to what you're trying to do. Rodio is nice if you just want to play sound files and don't care about the details. If you want to manipulate audio in realtime, Creek is likely a better fit. You can take a look how I am combining Creek and Rubato for realtime tempo changes in the DJ application I am writing.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts