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§

converter
Structs for converting SoundSource parameters, like number of channels and sample rate.

Structs§

AudioEngine
The main struct of the crate.
Mixer
Keep track of each Sound, and mix they output together.
OggDecoder
A SourceSource, from ogg encoded sound data.
SampleRate
The number of samples processed per second for a single channel of audio.
SineWave
A SoundSource that generates a sine wave with a given frequency.
Sound
Represents a sound in the AudioEngine.
WavDecoder
A SourceSource, from wav encoded sound data.

Traits§

SoundSource
A source of sound samples.