repame-shell 0.3.3

Repose platform runner wrappers, sim stepping, viewport mount, and gamepad polling
Documentation
1
2
3
4
5
6
7
8
use repame_audio::{Audio, Cue};

pub fn drain_cues(audio: &mut Audio, cues: impl IntoIterator<Item = Cue>, pitch: impl Fn() -> f32) {
    for cue in cues {
        let _ = cue.pitch(pitch());
        audio.play(cue.name);
    }
}