summaryrefslogtreecommitdiffstats
path: root/src/server/mix.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-02 12:19:54 +0200
committerDavid Robillard <d@drobilla.net>2020-08-02 12:51:11 +0200
commit8123b3ff3aee3a161723c06a0d88141a0e8b7841 (patch)
tree82401219c53b678fcb3eab92904428e7b570a691 /src/server/mix.cpp
parent8e0ab708ccb604c3224da2386dde609cb30de2b7 (diff)
downloadingen-8123b3ff3aee3a161723c06a0d88141a0e8b7841.tar.gz
ingen-8123b3ff3aee3a161723c06a0d88141a0e8b7841.tar.bz2
ingen-8123b3ff3aee3a161723c06a0d88141a0e8b7841.zip
Fix shadow warnings
Diffstat (limited to 'src/server/mix.cpp')
-rw-r--r--src/server/mix.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/mix.cpp b/src/server/mix.cpp
index 6bd36ab1..aa9d5a1d 100644
--- a/src/server/mix.cpp
+++ b/src/server/mix.cpp
@@ -58,12 +58,12 @@ mix(const RunContext& ctx,
for (uint32_t i = 1; i < num_srcs; ++i) {
const Sample* __restrict const in = srcs[i]->samples();
if (srcs[i]->is_control()) { // control => audio
- for (SampleCount i = 0; i < end; ++i) {
- out[i] += in[0];
+ for (SampleCount j = 0; j < end; ++j) {
+ out[j] += in[0];
}
} else if (srcs[i]->is_audio()) { // audio => audio
- for (SampleCount i = 0; i < end; ++i) {
- out[i] += in[i];
+ for (SampleCount j = 0; j < end; ++j) {
+ out[j] += in[j];
}
} else if (srcs[i]->is_sequence()) { // sequence => audio
dst->render_sequence(ctx, srcs[i], true);