Skip to content

Commit 45c5232

Browse files
author
Max Weidauer
committed
fixed values randomly changing
1 parent 93e1917 commit 45c5232

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

SeamLess_Main/source/sourceTree/SourceTree.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ void SourceTree::dumpSourcesToReceiver(){
131131
for (int i = 0; i < source.nGains; i++){
132132
listenerList.call([source, i] (Listener& l) {l.sourceParameterChanged(source, PARAM_GAIN, i);});
133133

134-
source.pluginConnection->parameterChanged(PARAM_GAIN, i, source.gain[i], 0, 0);
134+
// XXX why was this even here??
135+
// source.pluginConnection->parameterChanged(PARAM_GAIN, i, source.gain[i], 0, 0);
135136
}
136137

137138
}
@@ -153,9 +154,11 @@ void SourceTree::updateSource(Source &source, Parameter parameter, int int_value
153154
if (int_value == PARAM_POS_SINGLE_X) source.xPosition = value1;
154155
else if (int_value == PARAM_POS_SINGLE_Y) source.yPosition = value1;
155156
else if (int_value == PARAM_POS_SINGLE_Z) source.zPosition = value1;
157+
break;
156158
case PARAM_GAIN:
157159
if (int_value < source.nGains && int_value >=0)
158160
source.gain[int_value] = value1;
161+
break;
159162
default:
160163
break;
161164
}

0 commit comments

Comments
 (0)