{"id":13438402,"url":"https://github.com/jhasse/ears","last_synced_at":"2025-12-16T00:11:12.640Z","repository":{"id":12552892,"uuid":"15223149","full_name":"jhasse/ears","owner":"jhasse","description":"Easy Api in Rust to play Sounds","archived":false,"fork":true,"pushed_at":"2020-04-13T17:23:32.000Z","size":3133,"stargazers_count":90,"open_issues_count":7,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-02T17:08:57.598Z","etag":null,"topics":["audio","music","ogg","openal","rust","sound"],"latest_commit_sha":null,"homepage":"https://docs.rs/ears/0.7.0/ears/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"jeremyletang/ears","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jhasse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-16T10:36:56.000Z","updated_at":"2024-09-21T12:54:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jhasse/ears","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhasse%2Fears","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhasse%2Fears/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhasse%2Fears/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhasse%2Fears/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhasse","download_url":"https://codeload.github.com/jhasse/ears/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221735088,"owners_count":16872225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","music","ogg","openal","rust","sound"],"created_at":"2024-07-31T03:01:05.248Z","updated_at":"2025-12-16T00:11:12.589Z","avatar_url":"https://github.com/jhasse.png","language":"Rust","readme":"# ears [![Build Status](https://travis-ci.org/jhasse/ears.svg?branch=master)](https://travis-ci.org/jhasse/ears) [![Build status](https://ci.appveyor.com/api/projects/status/7s7wo0m97x70f3w6?svg=true)](https://ci.appveyor.com/project/jhasse/ears) [![](http://meritbadge.herokuapp.com/ears)](https://crates.io/crates/ears)\n\n\n__ears__ is a simple library to play sounds and music in [Rust](https://www.rust-lang.org).\n\n* Provides an access to the OpenAL spatialization functionality in a simple way.\n* Accepts a lot of audio formats, thanks to libsndfile.\n\n## Building\n\nYou need to install OpenAL and libsndfile on your system:\n\n### Linux\n\nFedora:\n\n```\nsudo dnf install openal-soft-devel libsndfile-devel\n```\n\nDebian or Ubuntu:\n\n```\nsudo apt install libopenal-dev libsndfile1-dev\n```\n\n### Mac\n\n```\nbrew install openal-soft libsndfile\n```\n\n### Windows\n\nInstall [MSYS2](http://www.msys2.org/) according to the instructions. Be sure to\nuse the default installation folder (i.e. `C:\\msys32` or `C:\\msys64`), otherwise\ncompiling won't work. Then, run the following in the MSYS2 shell:\n\n```\npacman -S mingw-w64-x86_64-libsndfile mingw-w64-x86_64-openal\n```\n\n## Examples\n\n```\ncargo run --example basic\ncargo run --example many_sounds\ncargo run --example music\ncargo run --example record\ncargo run --example simple_player\n```\n\n## Functionality\n\n__ears__ provides two ways to play audio files:\n\n* The Sound class, which represents light sounds who can share a buffer of samples with another\n  Sound.\n* The Music class, which represents bigger sound and can't share sample buffers.\n","funding_links":[],"categories":["Libraries","库 Libraries","Rust","库","音频（Audio）"],"sub_categories":["Audio","Audio and Music","音频和音乐 Audio and Music","音频","音频 Audio","天文（Astronomy）"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhasse%2Fears","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhasse%2Fears","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhasse%2Fears/lists"}