#audio #sound #effects #rusty #sfx


Convenient sound library for small projects and educational purposes

3 stable releases

✓ Uses Rust 2018 edition

1.1.1 Nov 20, 2019
1.1.0 Oct 10, 2019
1.0.0 Oct 10, 2019

#78 in Audio

22 downloads per month
Used in 1 crate

MIT license

59 lines

Rusty Audio (rusty_audio)

Rusty Audio is a very simple audio library created for other educational rusty_* projects that I use for courses I teach online, at conferences, or in-person. It uses the very powerful rodio audio playback library under the hood, which you should use directly if your needs are more complex.

Dependencies on Linux

This library should work out-of-the-box on macOS, Windows, iOS, and emscripten. For Linux, the downstream package for actually playing sound (CPAL requires the alsa development libraries to be installed.


sudo yum install -y alsa-lib-devel


sudo apt install libasound2-dev


rusty_audio is a convenient sound library for small projects and educational purposes. For more elaborate needs, please use rodio, which is the much more powerful audio library that this one uses.


use rusty_audio::Audio;
let mut audio = Audio::new();
audio.add("startup", "audio_subsystem_initialized.mp3");
audio.play("startup"); // Execution continues while playback occurs in another thread.
audio.wait(); // Block until no sounds are playing


~18K SLoC