Skip to content

Commit c447efb

Browse files
committed
Compile Errors
1 parent 6a608c9 commit c447efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AudioTools/CoreAudio/AudioStreams.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ class InputMixer : public AudioStream {
11721172
/// to 0 it is muted (and the stream is not read any more). We recommend to
11731173
/// use values between 1 and 100
11741174
void setWeight(int index, int weight) {
1175-
if (channel < size()) {
1175+
if (index < streams.size()) {
11761176
weights[index] = weight;
11771177
recalculateWeights();
11781178
} else {

0 commit comments

Comments
 (0)