Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/RustAudio/rodio
Rust audio playback library
https://github.com/RustAudio/rodio
audio audio-playback-library rust
Last synced: 14 days ago
JSON representation
Rust audio playback library
- Host: GitHub
- URL: https://github.com/RustAudio/rodio
- Owner: RustAudio
- License: apache-2.0
- Created: 2015-07-22T11:38:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-07-11T16:01:42.000Z (4 months ago)
- Last Synced: 2024-07-12T04:49:59.656Z (4 months ago)
- Topics: audio, audio-playback-library, rust
- Language: Rust
- Size: 16.6 MB
- Stars: 1,671
- Watchers: 22
- Forks: 216
- Open Issues: 134
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
- awesome-rust-cn - tomaka/rodio - ci.org/tomaka/rodio.svg?branch=master)](https://travis-ci.org/tomaka/rodio) (Libraries / Audio)
- awesome-open-synth - Rodio
- awesome-rust - RustAudio/rodio
- awesome-rust-cn - RustAudio/rodio
- awesome-rust-zh - tomaka/rodio - Rust 音频播放库[![Build Status](https://api.travis-ci.org/tomaka/rodio.svg?branch=master)](https://travis-ci.org/tomaka/rodio) (库 / 音频)
- awesome-rust - RustAudio/rodio - Audio playback library (Libraries / Audio and Music)
- fucking-awesome-rust - RustAudio/rodio - Audio playback library (Libraries / Audio and Music)
- fucking-awesome-rust - RustAudio/rodio - Audio playback library (Libraries / Audio and Music)
README
# Audio playback library
[![Crates.io Version](https://img.shields.io/crates/v/rodio.svg)](https://crates.io/crates/rodio)
[![Crates.io Downloads](https://img.shields.io/crates/d/rodio.svg)](https://crates.io/crates/rodio)
[![Build Status](https://github.com/RustAudio/rodio/workflows/CI/badge.svg)](https://github.com/RustAudio/rodio/actions)Rust playback library.
Playback is handled by [cpal](https://github.com/RustAudio/cpal). Format decoding can be handled either by [Symphonia](https://github.com/pdeljanov/Symphonia), or by format-specific decoders:
- MP3 by [minimp3](https://github.com/lieff/minimp3) (but defaults to [Symphonia](https://github.com/pdeljanov/Symphonia)).
- WAV by [hound](https://github.com/ruud-v-a/hound).
- Vorbis by [lewton](https://github.com/est31/lewton).
- FLAC by [claxon](https://github.com/ruuda/claxon).
- MP4 and AAC (both disabled by default) are handled only by [Symphonia](https://github.com/pdeljanov/Symphonia).See [the docs](https://docs.rs/rodio/latest/rodio/#alternative-decoder-backends) for more details on backends.
# [Documentation](http://docs.rs/rodio)
[The documentation](http://docs.rs/rodio) contains an introduction to the library.
## Dependencies(Linux only)
Rodio uses `cpal` to send audio to the OS for playback. On Linux `cpal` needs the ALSA development files. These are provided as part of the libasound2-dev package on Debian and Ubuntu distributions and alsa-lib-devel on Fedora.
# Contributing
For information on how to contribute to this project, please see our [Contributing Guide](https://github.com/RustAudio/rodio/CONTRIBUTING.md).
## License
[License]: #licenseLicensed under either of
* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0), or
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)at your option.
### License of your contributions
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.