Skip to content

Commit bec06bb

Browse files
committed
feat: add procedural environmental audio synthesis to Gen mode
Implements a complete audio system for 3D scene generation with: - FunDSP-based procedural sound synthesis with lock-free Shared parameters - Ambient soundscapes: wind, rain, forest, ocean, cave, stream - Spatial audio emitters: water, fire, hum, wind, custom waveforms - Auto-inference system that detects entity names and assigns sounds - Distance-based attenuation and stereo panning - cpal audio output with separate audio thread for graph management - 4 new LLM tools: gen_set_ambience, gen_audio_emitter, gen_modify_audio, gen_audio_info Uses 3-thread architecture: Bevy main thread → audio management thread (FunDSP Net frontend) → cpal callback (Net backend) for glitch-free audio without blocking main thread or GPU operations.
1 parent 7aa39eb commit bec06bb

9 files changed

Lines changed: 1840 additions & 8 deletions

File tree

Cargo.lock

Lines changed: 321 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/gen/Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ gltf-json = { version = "1", features = ["names"] }
3434

3535
# Path resolution
3636
shellexpand = { workspace = true }
37+
38+
# Procedural audio (environmental soundscapes)
39+
fundsp = "0.20"
40+
cpal = "0.15"

0 commit comments

Comments
 (0)