fix(core): 오디오 및 진행 루프 수정

- AudioService 디버그 로그 정리
- ProgressLoop 개선
This commit is contained in:
JiWoong Sul
2026-01-07 22:13:19 +09:00
parent 7e736df46c
commit c02978c960
2 changed files with 4 additions and 3 deletions

View File

@@ -211,7 +211,6 @@ class AudioService {
if (_currentBgm == name) return;
if (_staticBgmPlayer == null) return;
debugPrint('[AudioService] playBgm requested: $name');
await _playBgmInternal(name);
}

View File

@@ -42,12 +42,14 @@ class ProgressLoop {
this.onPlayerDied,
this.onGameComplete,
List<int> availableSpeeds = const [1, 5],
int initialSpeedMultiplier = 1,
}) : _state = initialState,
_tickInterval = tickInterval,
_autoSaveConfig = autoSaveConfig,
_now = now ?? DateTime.now,
_stateController = StreamController<GameState>.broadcast(),
_availableSpeeds = availableSpeeds.isNotEmpty ? availableSpeeds : [1];
_availableSpeeds = availableSpeeds.isNotEmpty ? availableSpeeds : [1],
_speedMultiplier = initialSpeedMultiplier;
final ProgressService progressService;
final SaveManager? saveManager;
@@ -65,7 +67,7 @@ class ProgressLoop {
Timer? _timer;
int? _lastTickMs;
int _speedMultiplier = 1;
int _speedMultiplier;
List<int> _availableSpeeds;
GameState get current => _state;