refactor(audio): 오디오 서비스 정리 및 SFX 풀 개선

This commit is contained in:
JiWoong Sul
2026-01-12 16:16:54 +09:00
parent 2bf7387a08
commit 32ecafd33d
2 changed files with 16 additions and 11 deletions

View File

@@ -174,7 +174,8 @@ class AudioService {
return;
} catch (e) {
debugPrint(
'[AudioService] BGM player attempt ${attempt + 1} failed: $e');
'[AudioService] BGM player attempt ${attempt + 1} failed: $e',
);
_staticBgmPlayer = null;
if (attempt == maxRetries - 1) {
debugPrint('[AudioService] BGM disabled');
@@ -269,7 +270,9 @@ class AudioService {
// "Loading interrupted"는 새 BGM 요청으로 인한 정상 중단
if (errorStr.contains('Loading interrupted') ||
errorStr.contains('abort')) {
debugPrint('[AudioService] BGM $name loading interrupted (new request)');
debugPrint(
'[AudioService] BGM $name loading interrupted (new request)',
);
return; // 플레이어 재생성 불필요
}