Commit bec06bb
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
- crates/gen
- src/gen3d
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments