Expand description
rusty_audio
is a convenient sound library for small projects and educational purposes. For
more elaborate needs, please use rodio, which is the much
more powerful audio library that this one uses.
§Example
use rusty_audio::Audio;
let mut audio = Audio::new();
audio.add("startup", "audio_subsystem_initialized.mp3"); // Load the sound, give it a name
audio.play("startup"); // Execution continues while playback occurs in another thread.
audio.wait(); // Block until sounds finish playing
Modules§
Structs§
- Audio
- A simple 4-track audio system to load/decode audio files from disk to play later. Supported formats are: MP3, WAV, Vorbis and Flac.