diff options
author | Chloe Marcec <dmarcecguzman@gmail.com> | 2020-11-17 05:40:19 +0100 |
---|---|---|
committer | Chloe Marcec <dmarcecguzman@gmail.com> | 2020-11-17 05:40:19 +0100 |
commit | 908d3c56793ee67dccd0d370b175c4937420053f (patch) | |
tree | 5a29b03bf2689219a7c686cc5b9b38db0d996322 /src/audio_core/audio_renderer.cpp | |
parent | audren: Make use of nodiscard, rework downmixing, release all buffers (diff) | |
download | yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar.gz yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar.bz2 yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar.lz yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar.xz yuzu-908d3c56793ee67dccd0d370b175c4937420053f.tar.zst yuzu-908d3c56793ee67dccd0d370b175c4937420053f.zip |
Diffstat (limited to 'src/audio_core/audio_renderer.cpp')
-rw-r--r-- | src/audio_core/audio_renderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/audio_renderer.cpp b/src/audio_core/audio_renderer.cpp index 03a133640..e1ded84e0 100644 --- a/src/audio_core/audio_renderer.cpp +++ b/src/audio_core/audio_renderer.cpp @@ -17,8 +17,8 @@ namespace { [[nodiscard]] static constexpr s16 ClampToS16(s32 value) { - return static_cast<s16>(std::clamp(value, static_cast<s32>(std::numeric_limits<s16>::min()), - static_cast<s32>(std::numeric_limits<s16>::max()))); + return static_cast<s16>(std::clamp(value, s32{std::numeric_limits<s16>::min()}, + s32{std::numeric_limits<s16>::max()})); } [[nodiscard]] static constexpr s16 Mix2To1(s16 l_channel, s16 r_channel) { |