#music #music-playback #sound #decode #decoder

nightly playback-rs

A very simple audio/song loading and playing library

15 releases

Uses new Rust 2024

0.4.5 Dec 29, 2025
0.4.4 Jul 14, 2024
0.4.3 Jun 14, 2023
0.4.2 Mar 20, 2023
0.2.3 Jun 16, 2022

#557 in Audio

34 downloads per month
Used in nage

ISC license

35KB
879 lines

playback-rs Crates.io docs.rs

playback-rs is a very, very simple library to handle playing audio files using Symphonia and cpal, as well as rubato for sample rate conversion. It was made for and is the library used by kiku.

Run the Example

Symphonia is very slow when running in debug mode, so it is recommended to run the example in release mode:

cargo run --release --example=aplay -- song1.mp3 song2.flac song3.ogg

Dependencies

~10–42MB
~661K SLoC