Crate audio_engine
source · [−]Expand description
Audio Engine is a cross-platform crate for audio playback, build on top of cpal.
Supported formats
- ogg
- wav
Example
use audio_engine::{AudioEngine, WavDecoder};
let audio_engine = AudioEngine::new()?;
let mut sound = audio_engine.new_sound(WavDecoder::new(my_wav_sound))?;
sound.play();
Modules
Structs for converting SoundSource parameters, like number of channels and sample rate.
Structs
The main struct of the crate.
A SourceSource, from ogg encoded sound data.
The number of samples processed per second for a single channel of audio.
Represents a sound in the AudioEngine. If this is dropped, the sound will continue to play until it ends.
A SourceSource, from wav encoded sound data.
Traits
A source of sound samples.