jhasse/ears

ears is a simple library to play sounds and music in Rust

ears is a simple library to play sounds and music in MSYS2 according to the instructions

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:

Debian or Ubuntu:

Mac

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:

Examples

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.
Issues

Collection of the latest Issues

KunalBagaria

KunalBagaria

Comment Icon0

I've been trying to compile a rust binary and this is the error that I'm facing after I try to run it in a computer where OpenAL isn't already installed

Would there be any way to static link the libraries for this crate?

AgustinCB

AgustinCB

Comment Icon0

Hi!

I have a project using ears. I'm trying to compile it to ARMv6, but I'm getting the following error:

Some information:

Any idea what am I doing wrong? Thanks!

jD91mZM2

jD91mZM2

Comment Icon4

Something like a AudioControllable.seek would be amazing. Any change to get it implemented? It'd allow making applications that can move back and forth in audio, like a music player. Cheers!

Information - Updated Sep 07, 2022

Stars: 81
Forks: 13
Issues: 7

Repositories & Extras

A vector graphics renderer using OpenGL with a Rust & C API

A Rust example can be found in examples/quickstart

A vector graphics renderer using OpenGL with a Rust & C API

Drew's Foundation bindings for Rust

This library binds (some subset of) Apple Foundation to Rust

Drew's Foundation bindings for Rust

WASM Game Of Life

This is the code I have written as a result of following the exercises in the Rust WASM book which can be found recommended way...

WASM Game Of Life

Pure rust building block for distributed systems

The objective of bifrost is to build a solid foundation for distributed systems in rust

Pure rust building block for distributed systems

Rulox Interpreter

Rust implementation of the Lox language interpreter found in the

Rulox Interpreter

Overdamped Langevin dynamics with periodic boundary conditions in Rust

This code is meant to be run on very small systems (N < 100) due to the lack of internal neighbor data

Overdamped Langevin dynamics with periodic boundary conditions in Rust

A fork of the Rust implementation of FROST: Flexible Round-Optimised Schnorr Threshold signatures by Chelsea...

A fork of the Rust implementation of and adapted to support additional Identifiable Cheating Entity property and Static group keys

A fork of the Rust implementation of FROST: Flexible Round-Optimised Schnorr Threshold signatures by Chelsea...

Oscen [“oh-sin”] is a library for building modular synthesizers in Rust

It contains a collection of components frequently used in sound synthesis

Oscen [“oh-sin”] is a library for building modular synthesizers in Rust
Facebook Instagram Twitter GitHub Dribbble
Privacy