Play (wrong) door sound effect when the door opens or closes

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
2026-03-15 21:13:41 +01:00
parent b3b909a9b6
commit b0852543b0
18 changed files with 268 additions and 485 deletions

View File

@@ -12,4 +12,34 @@ class FlutterAudioAdapter implements EngineAudio {
void stopMusic() {
Wolf3d.I.audio.stopMusic();
}
@override
void playSoundEffect(int sfxId) {
Wolf3d.I.audio.playSoundEffect(sfxId);
}
@override
void playMenuMusic() {
Wolf3d.I.audio.playMenuMusic();
}
@override
Future<void> init() async {
await Wolf3d.I.audio.init();
}
@override
void dispose() {
Wolf3d.I.audio.dispose();
}
@override
WolfensteinData? get activeGame => Wolf3d.I.activeGame;
@override
set activeGame(WolfensteinData? value) {
if (value != null) {
Wolf3d.I.setActiveGame(value);
}
}
}