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

nightly playback-rs

A very simple audio/song loading and playing library

14 releases

new 0.4.4 Jul 14, 2024
0.4.3 Jun 14, 2023
0.4.2 Mar 20, 2023
0.4.0 Feb 21, 2023
0.1.2 May 28, 2022

#331 in Audio

Download history 3/week @ 2024-03-26 31/week @ 2024-04-02 46/week @ 2024-04-09 5/week @ 2024-04-23 2/week @ 2024-05-14 10/week @ 2024-05-21 22/week @ 2024-05-28 55/week @ 2024-06-04 45/week @ 2024-06-11 14/week @ 2024-06-18 2/week @ 2024-06-25 109/week @ 2024-07-09

128 downloads per month
Used in nage

ISC license

32KB
791 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–45MB
~722K SLoC