Skip to content

Commit

Permalink
fix: SSL - don´t update received fader level if value is identical to…
Browse files Browse the repository at this point in the history
… current value (when assigning more than 1 channel pr fader in Sisyfos)
  • Loading branch information
olzzon authored and olzzon committed Jul 6, 2020
1 parent 0fcb299 commit 6ba6078
Showing 1 changed file with 40 additions and 30 deletions.
70 changes: 40 additions & 30 deletions server/utils/mixerConnections/SSLMixerConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,43 +121,53 @@ export class SSLMixerConnection {
state.settings[0].autoResetLevel) /
100
) {
store.dispatch({
type: SET_FADER_LEVEL,
channel: assignedFaderIndex,
level: value,
})
if (
!state.faders[0].fader[
assignedFaderIndex
].pgmOn
state.channels[0].channel[channelIndex]
.outputLevel !== value
) {
store.dispatch({
type: TOGGLE_PGM,
type: SET_FADER_LEVEL,
channel: assignedFaderIndex,
level: value,
})
}
if (
!state.faders[0].fader[
assignedFaderIndex
].pgmOn
) {
store.dispatch({
type: TOGGLE_PGM,
channel: assignedFaderIndex,
})
}

if (remoteConnections) {
remoteConnections.updateRemoteFaderState(
assignedFaderIndex,
value
)
}
if (
state.faders[0].fader[
assignedFaderIndex
].pgmOn
) {
state.channels[0].channel.map(
(channel: any, index: number) => {
if (
channel.assignedFader ===
assignedFaderIndex
) {
this.updateOutLevel(index)
if (remoteConnections) {
remoteConnections.updateRemoteFaderState(
assignedFaderIndex,
value
)
}
if (
state.faders[0].fader[
assignedFaderIndex
].pgmOn
) {
state.channels[0].channel.map(
(
channel: any,
index: number
) => {
if (
channel.assignedFader ===
assignedFaderIndex
) {
this.updateOutLevel(
index
)
}
}
}
)
)
}
}
} else if (
state.faders[0].fader[assignedFaderIndex]
Expand Down

0 comments on commit 6ba6078

Please sign in to comment.