diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-26 18:43:04 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-26 18:43:04 +0300 |
| commit | b12a11f00cbd04c053bb6979c0534708d206c46a (patch) | |
| tree | 0a61d49c1bef3c4cb52c3370cc1c0119df422043 /apps/fparkan-game/src/main.rs | |
| parent | f3f5054641a3542e3154461f39a7a204cfd095ff (diff) | |
| download | fparkan-b12a11f00cbd04c053bb6979c0534708d206c46a.tar.xz fparkan-b12a11f00cbd04c053bb6979c0534708d206c46a.zip | |
fix(audio): play projectile launch sounds
Read phase-zero one-shot sounds from the projectile's initial Control
effect group. Reuse the decoded effects for trails and play the launch
sounds when the weapon creates a projectile.
The native mode-1 phase probe and the licensed hero missile fixture
both pass. A replayed trigger at the stock Firing Line start queued
H_fire_missile.wav once and Vulkan validation was clean.
Diffstat (limited to 'apps/fparkan-game/src/main.rs')
| -rw-r--r-- | apps/fparkan-game/src/main.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs index a8f3f431..dd186207 100644 --- a/apps/fparkan-game/src/main.rs +++ b/apps/fparkan-game/src/main.rs @@ -9627,12 +9627,6 @@ fn run_static_vulkan_mode( .effect .as_ref() .and_then(|(archive, name)| shot_sound::load(root, archive, name)); - if sound.is_none() { - eprintln!( - "sim_coverage player_weapon_sound_stub=1 object={index} projectile={}", - weapon.projectile - ); - } (pool, sound) }) .collect(); @@ -9665,6 +9659,7 @@ fn run_static_vulkan_mode( }; projectile_draws.push(draw); } + shot_sound::report_missing_player_sounds(&player_weapon_layouts, &projectile_draws); } let autodemo_draws = mission_engine.as_ref().map_or_else(Vec::new, |engine| { fparkan_runtime::autodemo_projectile_types(engine).iter().map(|kind| { @@ -11242,6 +11237,7 @@ impl StaticVulkanApp { } shot_sound::play_autonomous( &self.autonomous_shot_sounds, + &self.autodemo_draws, &frame.autodemo_combat_events, audio, ); |
