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 {
11711171 // / Dynamically update the new weight for the indicated channel: If you set it
11721172 // / to 0 it is muted (and the stream is not read any more). We recommend to
11731173 // / use values between 1 and 100
1174- void setWeight (int channel , int weight) {
1174+ void setWeight (int index , int weight) {
11751175 if (channel < size ()) {
1176- weights[channel ] = weight;
1176+ weights[index ] = weight;
11771177 recalculateWeights ();
11781178 } else {
1179- LOGE (" Invalid channel %d - max is %d" , channel , size () - 1 );
1179+ LOGE (" Invalid index %d - max is %d" , index , size () - 1 );
11801180 }
11811181 }
11821182
@@ -1267,11 +1267,6 @@ class InputMixer : public AudioStream {
12671267 return -1 ;
12681268 }
12691269
1270- // / Provides the actual index of the stream
1271- int indexOf (Stream& stream){
1272- return streams.indexOf (&stream);
1273- }
1274-
12751270 protected:
12761271 Vector<Stream *> streams{0 };
12771272 Vector<int > weights{0 };
You can’t perform that action at this time.
0 commit comments