{"id":13438400,"url":"https://github.com/GuillaumeGomez/rust-fmod","last_synced_at":"2025-03-20T05:31:54.761Z","repository":{"id":16991043,"uuid":"19754073","full_name":"GuillaumeGomez/rust-fmod","owner":"GuillaumeGomez","description":"A rust binding for the FMOD library","archived":false,"fork":false,"pushed_at":"2022-07-22T00:44:25.000Z","size":1621,"stargazers_count":64,"open_issues_count":1,"forks_count":16,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-17T10:07:17.818Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://guillaumegomez.github.io/rust-fmod/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GuillaumeGomez.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.TXT","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["GuillaumeGomez"],"patreon":"GuillaumeGomez"}},"created_at":"2014-05-13T20:09:19.000Z","updated_at":"2025-03-16T20:56:34.000Z","dependencies_parsed_at":"2022-09-26T21:12:11.932Z","dependency_job_id":null,"html_url":"https://github.com/GuillaumeGomez/rust-fmod","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/GuillaumeGomez%2Frust-fmod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeGomez%2Frust-fmod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeGomez%2Frust-fmod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeGomez%2Frust-fmod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GuillaumeGomez","download_url":"https://codeload.github.com/GuillaumeGomez/rust-fmod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244014136,"owners_count":20383715,"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":[],"created_at":"2024-07-31T03:01:05.205Z","updated_at":"2025-03-20T05:31:54.485Z","avatar_url":"https://github.com/GuillaumeGomez.png","language":"Rust","funding_links":["https://github.com/sponsors/GuillaumeGomez","https://patreon.com/GuillaumeGomez"],"categories":["Libraries","库 Libraries","库","音频（Audio）"],"sub_categories":["Audio","Audio and Music","音频 Audio","音频","天文（Astronomy）"],"readme":"rust-fmod [![Build Status](https://api.travis-ci.org/GuillaumeGomez/rust-fmod.png?branch=master)](https://travis-ci.org/GuillaumeGomez/rust-fmod)\n=========\n\nThis is a rust binding for __FMOD__, the library developped by FIRELIGHT TECHNOLOGIES.\n\n__FMOD__ website : www.fmod.org\n\nYou can also find it on [crates.io](https://crates.io/crates/fmod) !\n\n## Installation\n\nYou must install on your computer the __FMOD__ library which is used for the binding.\n\nSince this project supports cargo, you can build it this way:\n\n```Shell\n\u003e cargo build\n```\n\nThis isn't a binding to the lastest version. You can find the bound version [here](http://www.guillaume-gomez.fr/fmodapi44439linux.tar.gz).\n\n## Documentation\n\nYou can access the __rfmod__ documentation locally, just build it:\n\n```Shell\n\u003e cargo doc --open\n```\n\nYou can also access the latest build of the documentation directly on [docs.rs](https://docs.rs/fmod/0.10.1/rfmod/).\n\n## Short example\n\nHere is a short example on how to create a file and to play it :\n\n```Rust\nextern crate rfmod;\n\nfn main() {\n    let fmod = match rfmod::Sys::new() {\n        Ok(f) =\u003e f,\n        Err(e) =\u003e {\n            panic!(\"Error code : {:?}\", e);\n        }\n    };\n\n    match fmod.init() {\n        rfmod::Result::Ok =\u003e {}\n        e =\u003e {\n            panic!(\"FmodSys.init failed : {:?}\", e);\n        }\n    };\n\n    let sound = match fmod.create_sound(\"music.mp3\", None, None) {\n        Ok(s) =\u003e s,\n        Err(err) =\u003e {\n            panic!(\"Error code : {:?}\", err);\n        }\n    };\n\n    match sound.play_to_the_end() {\n        rfmod::Result::Ok =\u003e {\n            println!(\"Ok !\");\n        }\n        err =\u003e {\n            panic!(\"Error code : {:?}\", err);\n        }\n    };\n}\n```\n\nFor a more complete example : https://github.com/GuillaumeGomez/rust-music-player\n\n## License\n\n    Please refer to the LICENSE.txt file for more details.\n    If you want more information, here is the FMOD website : http://www.fmod.org/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGuillaumeGomez%2Frust-fmod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGuillaumeGomez%2Frust-fmod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGuillaumeGomez%2Frust-fmod/lists"}