quickfix build error
This commit is contained in:
parent
a4103c8250
commit
188a46d49c
1 changed files with 3 additions and 3 deletions
|
|
@ -840,7 +840,7 @@ class AudioPlayer: NSObject, ObservableObject {
|
|||
// Without this, the first 1-2 Canvas frames read stale zeroed _audioLevels
|
||||
// (zeroed by pause) and the wave starts flat then slowly ramps up.
|
||||
if isUsingOfflineVis {
|
||||
alog("resume: offlineVis path — startOfflineVisSync", category: "VisDebug")
|
||||
DebugLogger.shared.log("resume: offlineVis path — startOfflineVisSync", category: "VisDebug")
|
||||
// Offline vis: prime with the last-rendered frame at current position
|
||||
if !offlineVisBuffer.isEmpty {
|
||||
let dur = duration
|
||||
|
|
@ -851,7 +851,7 @@ class AudioPlayer: NSObject, ObservableObject {
|
|||
}
|
||||
startOfflineVisSync()
|
||||
} else if isUsingRealFFT, !isUsingOfflineVis {
|
||||
alog("resume: realFFT path — rebuilding levelTimer", category: "VisDebug")
|
||||
DebugLogger.shared.log("resume: realFFT path — rebuilding levelTimer", category: "VisDebug")
|
||||
// Engine FFT path: rawFFTLevels still holds pre-pause data — push it immediately
|
||||
setLevels(rawFFTLevels)
|
||||
stopLevelTimer()
|
||||
|
|
@ -860,7 +860,7 @@ class AudioPlayer: NSObject, ObservableObject {
|
|||
self.setLevels(self.rawFFTLevels)
|
||||
}
|
||||
} else {
|
||||
alog("resume: simulation path — levelTimer nil=\(levelTimer == nil)", category: "VisDebug")
|
||||
DebugLogger.shared.log("resume: simulation path — levelTimer nil=\(levelTimer == nil)", category: "VisDebug")
|
||||
// Simulation path: seed internalLevels from a fresh random target
|
||||
// so the wave has height immediately rather than starting from floor.
|
||||
lastTargetPhase = -1
|
||||
|
|
|
|||
Loading…
Reference in a new issue