Popularity
2.8
Growing
Activity
0.0
Stable
85
5
13
Programming language: Rust
License: MIT License
Latest version: v0.4.0
ears alternatives and similar packages
Based on the "Audio" category.
Alternatively, view ears alternatives based on common mentions on social networks and blogs.
Clean code begins in your IDE with SonarLint
Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
Promo
www.sonarlint.org
Do you think we are missing an alternative of ears or a related project?
Popular Comparisons
README
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
Fedora:
sudo dnf install openal-soft-devel libsndfile-devel
Debian or Ubuntu:
sudo apt install libopenal-dev libsndfile1-dev
Mac
brew install openal-soft libsndfile
Windows
Install MSYS2 according to the instructions. Be sure to
use the default installation folder (i.e. C:\msys32
or C:\msys64
), otherwise
compiling won't work. Then, run the following in the MSYS2 shell:
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.