mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-15 17:40:51 +00:00
add i to init, a little clearer to read
This commit is contained in:
parent
4b69952fd5
commit
68e9654502
2
bus.go
2
bus.go
@ -277,7 +277,7 @@ func newBusLevels(i int, k *kind) *levels {
|
|||||||
func (l *levels) All() []float64 {
|
func (l *levels) All() []float64 {
|
||||||
levels := make([]float64, l.offset)
|
levels := make([]float64, l.offset)
|
||||||
for i := range levels {
|
for i := range levels {
|
||||||
levels[i] = convertLevel(_levelCache.busLevels[i+l.init])
|
levels[i] = convertLevel(_levelCache.busLevels[l.init+i])
|
||||||
}
|
}
|
||||||
return levels
|
return levels
|
||||||
}
|
}
|
||||||
|
6
strip.go
6
strip.go
@ -600,7 +600,7 @@ func (l *levels) PreFader() []float64 {
|
|||||||
_levelCache.stripMode = 0
|
_levelCache.stripMode = 0
|
||||||
levels := make([]float64, l.offset)
|
levels := make([]float64, l.offset)
|
||||||
for i := range levels {
|
for i := range levels {
|
||||||
levels[i] = convertLevel(_levelCache.stripLevels[i+l.init])
|
levels[i] = convertLevel(_levelCache.stripLevels[l.init+i])
|
||||||
}
|
}
|
||||||
return levels
|
return levels
|
||||||
}
|
}
|
||||||
@ -610,7 +610,7 @@ func (l *levels) PostFader() []float64 {
|
|||||||
_levelCache.stripMode = 1
|
_levelCache.stripMode = 1
|
||||||
levels := make([]float64, l.offset)
|
levels := make([]float64, l.offset)
|
||||||
for i := range levels {
|
for i := range levels {
|
||||||
levels[i] = convertLevel(_levelCache.stripLevels[i+l.init])
|
levels[i] = convertLevel(_levelCache.stripLevels[l.init+i])
|
||||||
}
|
}
|
||||||
return levels
|
return levels
|
||||||
}
|
}
|
||||||
@ -620,7 +620,7 @@ func (l *levels) PostMute() []float64 {
|
|||||||
_levelCache.stripMode = 2
|
_levelCache.stripMode = 2
|
||||||
levels := make([]float64, l.offset)
|
levels := make([]float64, l.offset)
|
||||||
for i := range levels {
|
for i := range levels {
|
||||||
levels[i] = convertLevel(_levelCache.stripLevels[i+l.init])
|
levels[i] = convertLevel(_levelCache.stripLevels[l.init+i])
|
||||||
}
|
}
|
||||||
return levels
|
return levels
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user