Introduces AudioCommand enum (Play, Stop, SetVolume, StopAll, Shutdown) and AudioSystem that spawns a dedicated audio thread. On Windows the thread drives WasapiDevice with a 5ms mix-and-write loop; on other platforms it runs in silent null mode. lib.rs exports wasapi (windows) and audio_system modules with AudioSystem re-exported at crate root. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
12 lines
274 B
Rust
12 lines
274 B
Rust
pub mod audio_clip;
|
|
pub mod wav;
|
|
pub mod mixing;
|
|
#[cfg(target_os = "windows")]
|
|
pub mod wasapi;
|
|
pub mod audio_system;
|
|
|
|
pub use audio_clip::AudioClip;
|
|
pub use wav::{parse_wav, generate_wav_bytes};
|
|
pub use mixing::{PlayingSound, mix_sounds};
|
|
pub use audio_system::AudioSystem;
|