Drop-in three.js replacement for Rust and WebAssembly (wgpu) — THREE.* API, scene graph, PBR, post-fx, mesh BVH, CSG, an OpenSCAD front end with a watertight exact-CSG kernel, headless render, and native media codecs
usesuper::Audio;/// Audio playback backend. The default `NoopBackend` does nothing; users can
/// plug in cpal/rodio natively or web_sys::AudioContext on wasm by
/// implementing this trait themselves.
pubtraitAudioBackend: Send + Sync {fnplay(&mutself, source:&Audio);fnstop(&mutself, source:&Audio);fnset_master_volume(&mutself, volume:f32);}#[derive(Debug, Default)]pubstructNoopBackend;implAudioBackend forNoopBackend{fnplay(&mutself, _source:&Audio){}fnstop(&mutself, _source:&Audio){}fnset_master_volume(&mutself, _volume:f32){}}