mirror of
https://github.com/bryanthaboi/gen1recomp
synced 2026-10-08 17:51:37 -04:00
f5235858e9
- On Android, allow game audio to mix with external audio by default instead of demanding exclusive audio focus and freezing when focus changes. - Add an 'AUDIO MODE' option across Gen 1, Gen 2, and Gen 3 options menus and Launcher Settings: - BOTH: Game BGM and SFX mix with external media. - EXT ONLY: In-game BGM is muted while SFX remains active, mixing with external media. - GAME ONLY: Requests exclusive audio focus (AUDIOFOCUS_GAIN), pausing background media. - Guard Gen 3 waitse/waitfanfare audio script waits with timeouts and Audio._suspended checks so script execution never blocks indefinitely when audio is paused or interrupted. - Expose setAudioMixWithSystem / love.audio.setMixWithSystem via JNI / C++ to dynamically toggle Android audio focus behavior based on user setting. - Add unit test suite in tests/engine/audio_focus_mode_test.lua.