From b12a11f00cbd04c053bb6979c0534708d206c46a Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 19:43:04 +0400 Subject: 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. --- apps/fparkan-game/src/main.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'apps/fparkan-game/src/main.rs') 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, ); -- cgit v1.2.3