1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
/*!
# soloud-sys
Raw bindings to soloud. These are generated using bindgen on the soloud C headers.
## Usage
```toml
[dependencies]
soloud-sys = { version = "1", features = ["miniaudio"] }
```
Example code:
```rust,no_run
use soloud_sys::soloud::*;
fn main() {
unsafe {
let sl = Soloud_create();
Soloud_init(sl);
std::thread::sleep(std::time::Duration::from_millis(100));
Soloud_setGlobalVolume(sl, 3.0);
let speech = Speech_create();
let ret = Speech_setText(speech, "Hello World\0".as_ptr() as _);
dbg!(ret);
Soloud_play(sl, speech);
while Soloud_getVoiceCount(sl) > 0 {
// calls to play are non-blocking, so we put the thread to sleep
std::thread::sleep(std::time::Duration::from_millis(100));
}
}
}
```
*/
#![allow(non_camel_case_types)]
#![allow(dead_code)]
#![allow(non_upper_case_globals)]
pub mod soloud;