#playback #decode #decoder #sound #music #sample-rate #encoding

nightly playback-rs

A very simple audio/song loading and playing library

13 unstable releases (3 breaking)

0.4.3 Jun 14, 2023
0.4.2 Mar 20, 2023
0.4.0 Feb 21, 2023
0.3.0 Feb 19, 2023
0.1.2 May 28, 2022

#724 in Audio


Used in nage

ISC license

32KB
790 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

~11–44MB
~744K SLoC