We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a608c9 commit c447efbCopy full SHA for c447efb
src/AudioTools/CoreAudio/AudioStreams.h
@@ -1172,7 +1172,7 @@ class InputMixer : public AudioStream {
1172
/// to 0 it is muted (and the stream is not read any more). We recommend to
1173
/// use values between 1 and 100
1174
void setWeight(int index, int weight) {
1175
- if (channel < size()) {
+ if (index < streams.size()) {
1176
weights[index] = weight;
1177
recalculateWeights();
1178
} else {
0 commit comments