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.
Keep track of each Sound, and mix they output together.
A SourceSource, from ogg encoded sound data.
The number of samples processed per second for a single channel of audio.
A SoundSource that generates a sine wave with a given frequency.
Represents a sound in the AudioEngine.
A SourceSource, from wav encoded sound data.
Traits
A source of sound samples.