summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-08-21 17:04:53 -0400
committerGravatar GitHub2018-08-21 17:04:53 -0400
commit16b83fac9baeeef38eded0b839841dcd67fe0618 (patch)
tree4d23a8b5a749889772aa016814a343810c888636 /src
parentMerge pull request #1149 from lioncash/paren (diff)
parentaudio_core/filter: Add explicit cast to assignment in Process() (diff)
downloadyuzu-16b83fac9baeeef38eded0b839841dcd67fe0618.tar.gz
yuzu-16b83fac9baeeef38eded0b839841dcd67fe0618.tar.xz
yuzu-16b83fac9baeeef38eded0b839841dcd67fe0618.zip
Merge pull request #1148 from lioncash/audio-warn
audio_core/filter: Add explicit cast to assignment in Process()
Diffstat (limited to 'src')
-rw-r--r--src/audio_core/algorithm/filter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/algorithm/filter.cpp b/src/audio_core/algorithm/filter.cpp
index 403b8503f..9fcd0614d 100644
--- a/src/audio_core/algorithm/filter.cpp
+++ b/src/audio_core/algorithm/filter.cpp
@@ -46,7 +46,7 @@ void Filter::Process(std::vector<s16>& signal) {
46 out[0][ch] = b0 * in[0][ch] + b1 * in[1][ch] + b2 * in[2][ch] - a1 * out[1][ch] - 46 out[0][ch] = b0 * in[0][ch] + b1 * in[1][ch] + b2 * in[2][ch] - a1 * out[1][ch] -
47 a2 * out[2][ch]; 47 a2 * out[2][ch];
48 48
49 signal[i * 2 + ch] = std::clamp(out[0][ch], -32768.0, 32767.0); 49 signal[i * 2 + ch] = static_cast<s16>(std::clamp(out[0][ch], -32768.0, 32767.0));
50 } 50 }
51 } 51 }
52} 52}