refactor(tracker): Player sends PlayerStatus to the Model

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2025-06-19 11:37:11 +03:00
parent c77d541dc6
commit 4f2c73d0db
4 changed files with 42 additions and 44 deletions

View File

@ -174,7 +174,7 @@ func (v *Instruments) Item(i int) (name string, maxLevel float32, mute bool, ok
end = vm.MAX_VOICES
}
if start < end {
for _, level := range v.voiceLevels[start:end] {
for _, level := range v.playerStatus.VoiceLevels[start:end] {
if maxLevel < level {
maxLevel = level
}