mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-27 22:42:47 +00:00
audio_core/filter: Add explicit cast to assignment in Process()
Previously this would cause warnings about implicit conversions to s16 from a double
This commit is contained in:
parent
c95c4442e9
commit
0057a47e41
|
@ -46,7 +46,7 @@ void Filter::Process(std::vector<s16>& signal) {
|
||||||
out[0][ch] = b0 * in[0][ch] + b1 * in[1][ch] + b2 * in[2][ch] - a1 * out[1][ch] -
|
out[0][ch] = b0 * in[0][ch] + b1 * in[1][ch] + b2 * in[2][ch] - a1 * out[1][ch] -
|
||||||
a2 * out[2][ch];
|
a2 * out[2][ch];
|
||||||
|
|
||||||
signal[i * 2 + ch] = std::clamp(out[0][ch], -32768.0, 32767.0);
|
signal[i * 2 + ch] = static_cast<s16>(std::clamp(out[0][ch], -32768.0, 32767.0));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue