| Crates.io | oddio |
| lib.rs | oddio |
| version | 0.7.4 |
| created_at | 2020-11-26 18:47:58.161896+00 |
| updated_at | 2023-10-15 23:54:03.328497+00 |
| description | Lightweight game audio library |
| homepage | |
| repository | https://github.com/Ralith/oddio |
| max_upload_size | |
| id | 316828 |
| size | 420,453 |
Oddio is a game-oriented audio library that is:
Signal for custom streaming synthesis and filteringSignals can be transformed without obstructing the inner Signal's controlslet (mut scene_handle, mut scene) = oddio::SpatialScene::new();
// In audio callback:
let out_frames = oddio::frame_stereo(data);
oddio::run(&mut scene, output_sample_rate, out_frames);
// In game logic:
let frames = oddio::FramesSignal::from(oddio::Frames::from_slice(sample_rate, &frames));
let mut handle = scene_handle
.play(frames, oddio::SpatialOptions { position, velocity, ..Default::default() });
// When position/velocity changes:
handle.set_motion(position, velocity, false);
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.