Oddio
Oddio is a game-oriented audio library that is:
- Lightweight: Fast compilation, few dependencies, and a simple interface
- Sans I/O: Send output wherever you like
- Real-time: Audio output is efficient and wait-free: no glitches until you run out of CPU
- 3D: Spatialization with doppler effects and propagation delay available out of the box
- Extensible: Implement
Signal
for custom streaming synthesis and filtering - Composable:
Signal
s can be transformed without obstructing the innerSignal
's controls
Example
let = spatial;
// In audio callback:
let out_frames = frame_stereo;
run;
// In game logic:
let frames = from;
let mut handle = scene_handle.play;
// When position/velocity changes:
handle..set_motion;