fix(audio): 백그라운드 시 SFX 미정지 + GameAudioController 메모리 누수 수정
Some checks failed
CI / analyze-and-test (push) Has been cancelled
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:
@@ -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)');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user