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

nightly playback-rs

A very simple audio/song loading and playing library

14 releases

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

#362 in Audio

Download history 102/week @ 2024-07-15 1/week @ 2024-07-22 7/week @ 2024-08-12 4/week @ 2024-08-19 15/week @ 2024-08-26 13/week @ 2024-09-16 60/week @ 2024-09-23 6/week @ 2024-09-30 34/week @ 2024-10-07 84/week @ 2024-10-14 9/week @ 2024-10-28

127 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–41MB
~706K SLoC