fix(audio): restore recovered mechanism sounds
Play the original WAVE resource for both movement edges of each flipper and centralize gameplay event sound selection. Replace guessed control and mechanism mappings with the resource numbers recovered from the Win16 call sites. Keep synthetic ball search silent because it has no original trigger. Test Plan: - cargo fmt --check - cargo test - cargo clippy --all-targets --all-features -- -D warnings - git diff --cached --check
This commit is contained in:
+3
-15
@@ -191,21 +191,9 @@ impl App {
|
||||
}
|
||||
|
||||
fn play_event(&self, event: Event) {
|
||||
let id = match event {
|
||||
Event::Flipper => 2001,
|
||||
Event::Launch => 2016,
|
||||
Event::Bumper => 2002,
|
||||
Event::Target => 2006,
|
||||
Event::Wheel => 2004,
|
||||
Event::Robot => 2007,
|
||||
Event::Lock => 2017,
|
||||
Event::Media => 2022,
|
||||
Event::ExtraBall => 2019,
|
||||
Event::Nudge | Event::BallSearch => 2021,
|
||||
Event::Tilt => 2015,
|
||||
Event::Drain => 2013,
|
||||
};
|
||||
self.assets.play(id, self.saved.settings.sounds);
|
||||
if let Some(id) = event.sound_resource() {
|
||||
self.assets.play(id, self.saved.settings.sounds);
|
||||
}
|
||||
}
|
||||
|
||||
fn finish_game(&mut self) {
|
||||
|
||||
Reference in New Issue
Block a user