#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

#336 in Audio

Download history 137/week @ 2024-07-14 1/week @ 2024-07-21 6/week @ 2024-08-11 5/week @ 2024-08-18 12/week @ 2024-08-25 3/week @ 2024-09-01 13/week @ 2024-09-15 47/week @ 2024-09-22 19/week @ 2024-09-29 22/week @ 2024-10-06 95/week @ 2024-10-13 1/week @ 2024-10-20 9/week @ 2024-10-27

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
~705K SLoC