IO mixer: Limit outputs to proper range

This commit is contained in:
Lorenz Meier
2015-06-11 14:51:49 +02:00
parent 3cc2b7ed12
commit 000434be15
+7
View File
@@ -353,6 +353,13 @@ mixer_callback(uintptr_t handle,
return -1;
}
/* limit output */
if (control > 1.0f) {
control = 1.0f;
} else if (control < -1.0f) {
control = -1.0f;
}
return 0;
}