aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game/src/audio.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-11-26 18:43:04 +0300
committerValentin Popov <valentin@popov.link>2026-11-26 18:43:04 +0300
commitb12a11f00cbd04c053bb6979c0534708d206c46a (patch)
tree0a61d49c1bef3c4cb52c3370cc1c0119df422043 /apps/fparkan-game/src/audio.rs
parentf3f5054641a3542e3154461f39a7a204cfd095ff (diff)
downloadfparkan-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/audio.rs')
-rw-r--r--apps/fparkan-game/src/audio.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/fparkan-game/src/audio.rs b/apps/fparkan-game/src/audio.rs
index c0af0418..ec64df1e 100644
--- a/apps/fparkan-game/src/audio.rs
+++ b/apps/fparkan-game/src/audio.rs
@@ -1917,6 +1917,7 @@ mod tests {
audio.set_paused(true);
crate::shot_sound::play_autonomous(
&sounds,
+ &[],
std::slice::from_ref(event),
&mut audio,
);