mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-22 23:14:59 -04:00
refactor(tracker): Player sends PlayerStatus to the Model
This commit is contained in:
parent
c77d541dc6
commit
4f2c73d0db
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user