Skip to content

Commit

Permalink
fix: Reduction metering - only update active channelstrip
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon authored and olzzon committed Nov 11, 2020
1 parent 6300181 commit 948ab79
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions client/utils/SocketClientHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
InumberOfChannels,
} from '../../server/reducers/channelsReducer'
import { VuType } from '../../server/utils/vuServer'
import { state } from '../../server/reducers/store'

export const vuMeters: number[][] = []

Expand Down Expand Up @@ -118,9 +119,14 @@ export const socketClientHandlers = () => {
.on(
VuType.Reduction,
(faderIndex: number, channelIndex: number, level: number) => {
window.storeRedux.dispatch(
storeVuReductionLevel(faderIndex, level)
)
if (
state.settings[0].showChanStrip === faderIndex &&
state.settings[0].showChanStripFull === faderIndex
) {
window.storeRedux.dispatch(
storeVuReductionLevel(faderIndex, level)
)
}
}
)
}

0 comments on commit 948ab79

Please sign in to comment.