Oddio

Documentation License: Apache 2.0 License: MIT

Oddio is a game-oriented audio library that is:

Example

```rust let (mut scenehandle, scene) = oddio::split(oddio::SpatialScene::new(samplerate, 0.1));

// In audio callback: let outframes = oddio::framestereo(data); oddio::run(&scene, outputsamplerate, out_frames);

// In game logic: let frames = oddio::FramesSignal::from(oddio::Frames::fromslice(samplerate, &frames)); let mut handle = scene_handle.control::() .play(frames, oddio::SpatialOptions { position, velocity, ..Default::default() });

// When position/velocity changes: handle.control::, >().setmotion(position, velocity); ```

License

Licensed under either of

at your option.

Contribution

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.