File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -1171,12 +1171,12 @@ class InputMixer : public AudioStream {
1171
1171
// / Dynamically update the new weight for the indicated channel: If you set it
1172
1172
// / to 0 it is muted (and the stream is not read any more). We recommend to
1173
1173
// / use values between 1 and 100
1174
- void setWeight (int channel , int weight) {
1174
+ void setWeight (int index , int weight) {
1175
1175
if (channel < size ()) {
1176
- weights[channel ] = weight;
1176
+ weights[index ] = weight;
1177
1177
recalculateWeights ();
1178
1178
} else {
1179
- LOGE (" Invalid channel %d - max is %d" , channel , size () - 1 );
1179
+ LOGE (" Invalid index %d - max is %d" , index , size () - 1 );
1180
1180
}
1181
1181
}
1182
1182
@@ -1267,11 +1267,6 @@ class InputMixer : public AudioStream {
1267
1267
return -1 ;
1268
1268
}
1269
1269
1270
- // / Provides the actual index of the stream
1271
- int indexOf (Stream& stream){
1272
- return streams.indexOf (&stream);
1273
- }
1274
-
1275
1270
protected:
1276
1271
Vector<Stream *> streams{0 };
1277
1272
Vector<int > weights{0 };
You can’t perform that action at this time.
0 commit comments