fix(tracker): remember to tell player when m.d.Loop is updated

This commit is contained in:
5684185+vsariola@users.noreply.github.com 2024-03-01 23:54:19 +02:00
parent 07bf8f6cdf
commit 7f20bd8baf

View File

@ -183,6 +183,7 @@ func NewModelPlayer(synther sointu.Synther, recoveryFilePath string) (*Model, *P
modelMsgs: modelMessages,
synther: synther,
song: m.d.Song.Copy(),
loop: m.d.Loop,
avgVolumeMeter: VolumeAnalyzer{Attack: 0.3, Release: 0.3, Min: -100, Max: 20},
peakVolumeMeter: VolumeAnalyzer{Attack: 1e-4, Release: 1, Min: -100, Max: 20},
}
@ -320,6 +321,7 @@ func (m *Model) UnmarshalRecovery(bytes []byte) {
}
m.d.ChangedSinceRecovery = false
m.send(m.d.Song.Copy())
m.send(m.d.Loop)
m.updatePatternUseCount()
}