docs.rs failed to build ears-0.3.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
ears-0.7.0
ears
ears is a simple library to play sounds and music in Rust.
- Provides an access to the OpenAL spatialization functionality in a simple way.
- Accepts a lot of audio formats, thanks to libsndfile.
Building
You need to install OpenAL and libsndfile on your system:
Linux
sudo apt install libopenal-dev libsndfile1-dev
Mac
brew install openal-soft libsndfile
Windows
pacman -S mingw-w64-x86_64-libsndfile mingw-w64-x86_64-openal
Examples
cargo run --example basic
cargo run --example many_sounds
cargo run --example music
cargo run --example record
cargo run --example simple_player
Functionality
ears provides two ways to play audio files:
- The Sound class, which represents light sounds who can share a buffer of samples with another Sound.
- The Music class, which represents bigger sound and can't share sample buffers.