#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

#718 in Audio

Download history 28/week @ 2023-12-24 51/week @ 2024-02-18 31/week @ 2024-02-25 4/week @ 2024-03-03 36/week @ 2024-03-10 13/week @ 2024-03-17

118 downloads per month
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–46MB
~750K SLoC