refactor(audio): 오디오 서비스 정리 및 SFX 풀 개선
This commit is contained in:
@@ -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; // 플레이어 재생성 불필요
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user