Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/GuillaumeGomez/rust-fmod
A rust binding for the FMOD library
https://github.com/GuillaumeGomez/rust-fmod
Last synced: about 2 months ago
JSON representation
A rust binding for the FMOD library
- Host: GitHub
- URL: https://github.com/GuillaumeGomez/rust-fmod
- Owner: GuillaumeGomez
- License: other
- Created: 2014-05-13T20:09:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-07-22T00:44:25.000Z (over 2 years ago)
- Last Synced: 2024-10-06T12:36:57.015Z (2 months ago)
- Language: Rust
- Homepage: http://guillaumegomez.github.io/rust-fmod/
- Size: 1.55 MB
- Stars: 63
- Watchers: 6
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.TXT
Awesome Lists containing this project
- awesome-rust-cn - GuillaumeGomez/rust-fmod - ci.org/GuillaumeGomez/rust-fmod.svg?branch=master)](https://travis-ci.org/GuillaumeGomez/rust-fmod) (Libraries / Audio)
- awesome-rust - GuillaumeGomez/rust-fmod - ci.org/GuillaumeGomez/rust-fmod.svg?branch=master)](https://travis-ci.org/GuillaumeGomez/rust-fmod) (Libraries / Audio)
- awesome-rust-zh - GuillaumeGomez/rust-fmod - [FMOD](https://www.fmod.com)绑定 [![Build Status](https://api.travis-ci.org/GuillaumeGomez/rust-fmod.svg?branch=master)](https://travis-ci.org/GuillaumeGomez/rust-fmod) (库 / 音频)
- awesome-rust - GuillaumeGomez/rust-fmod - ci.org/GuillaumeGomez/rust-fmod.svg?branch=master)](https://travis-ci.org/GuillaumeGomez/rust-fmod) (库 Libraries / 音频 Audio)
- awesome-rust-zh-cn - GuillaumeGomez/rust-fmod - ci.org/GuillaumeGomez/rust-fmod.svg?branch=master)](https://travis-ci.org/GuillaumeGomez/rust-fmod) (音频(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)
=========This is a rust binding for __FMOD__, the library developped by FIRELIGHT TECHNOLOGIES.
__FMOD__ website : www.fmod.org
You can also find it on [crates.io](https://crates.io/crates/fmod) !
## Installation
You must install on your computer the __FMOD__ library which is used for the binding.
Since this project supports cargo, you can build it this way:
```Shell
> cargo build
```This isn't a binding to the lastest version. You can find the bound version [here](http://www.guillaume-gomez.fr/fmodapi44439linux.tar.gz).
## Documentation
You can access the __rfmod__ documentation locally, just build it:
```Shell
> cargo doc --open
```You can also access the latest build of the documentation directly on [docs.rs](https://docs.rs/fmod/0.10.1/rfmod/).
## Short example
Here is a short example on how to create a file and to play it :
```Rust
extern crate rfmod;fn main() {
let fmod = match rfmod::Sys::new() {
Ok(f) => f,
Err(e) => {
panic!("Error code : {:?}", e);
}
};match fmod.init() {
rfmod::Result::Ok => {}
e => {
panic!("FmodSys.init failed : {:?}", e);
}
};let sound = match fmod.create_sound("music.mp3", None, None) {
Ok(s) => s,
Err(err) => {
panic!("Error code : {:?}", err);
}
};match sound.play_to_the_end() {
rfmod::Result::Ok => {
println!("Ok !");
}
err => {
panic!("Error code : {:?}", err);
}
};
}
```For a more complete example : https://github.com/GuillaumeGomez/rust-music-player
## License
Please refer to the LICENSE.txt file for more details.
If you want more information, here is the FMOD website : http://www.fmod.org/