fix(audio): 백그라운드 시 SFX 미정지 + GameAudioController 메모리 누수 수정
Some checks failed
CI / analyze-and-test (push) Has been cancelled

- SfxChannelPool.stopAll() 추가: 모든 SFX 즉시 정지 + 대기열 비우기
- pauseAll()에서 SFX 풀도 정지하도록 변경
- game_play_screen dispose에서 _audioController.dispose() 호출 추가
This commit is contained in:
JiWoong Sul
2026-03-30 23:28:29 +09:00
parent e2a9032009
commit ea54b4c501
3 changed files with 20 additions and 0 deletions

View File

@@ -364,6 +364,9 @@ class AudioService {
try {
await _staticBgmPlayer?.stop();
} catch (_) {}
// SFX도 즉시 정지
await _playerSfxPool?.stopAll();
await _monsterSfxPool?.stopAll();
_currentBgm = null;
debugPrint('[AudioService] All audio paused (was playing: $_pausedBgm)');
}