summaryrefslogtreecommitdiffstats
path: root/src/audio_core/renderer/command/data_source/decode.cpp
diff options
context:
space:
mode:
authorarades79 <scravers@protonmail.com>2023-02-14 17:13:47 +0100
committerarades79 <scravers@protonmail.com>2023-02-14 18:35:39 +0100
commit683019878fc939b418a65e1c5d84b066596d7655 (patch)
tree6b2a2e8ea34cb00a3fccf3613a52475550997035 /src/audio_core/renderer/command/data_source/decode.cpp
parentapply clang-format (diff)
downloadyuzu-683019878fc939b418a65e1c5d84b066596d7655.tar
yuzu-683019878fc939b418a65e1c5d84b066596d7655.tar.gz
yuzu-683019878fc939b418a65e1c5d84b066596d7655.tar.bz2
yuzu-683019878fc939b418a65e1c5d84b066596d7655.tar.lz
yuzu-683019878fc939b418a65e1c5d84b066596d7655.tar.xz
yuzu-683019878fc939b418a65e1c5d84b066596d7655.tar.zst
yuzu-683019878fc939b418a65e1c5d84b066596d7655.zip
Diffstat (limited to '')
-rw-r--r--src/audio_core/renderer/command/data_source/decode.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/audio_core/renderer/command/data_source/decode.cpp b/src/audio_core/renderer/command/data_source/decode.cpp
index 68a0aa15d..ff5d31bd6 100644
--- a/src/audio_core/renderer/command/data_source/decode.cpp
+++ b/src/audio_core/renderer/command/data_source/decode.cpp
@@ -27,8 +27,8 @@ constexpr std::array<u8, 3> PitchBySrcQuality = {4, 8, 4};
template <typename T>
static u32 DecodePcm(Core::Memory::Memory& memory, std::span<s16> out_buffer,
const DecodeArg& req) {
- constexpr static s32 min{std::numeric_limits<s16>::min()};
- constexpr static s32 max{std::numeric_limits<s16>::max()};
+ constexpr s32 min{std::numeric_limits<s16>::min()};
+ constexpr s32 max{std::numeric_limits<s16>::max()};
if (req.buffer == 0 || req.buffer_size == 0) {
return 0;
@@ -101,8 +101,8 @@ static u32 DecodePcm(Core::Memory::Memory& memory, std::span<s16> out_buffer,
*/
static u32 DecodeAdpcm(Core::Memory::Memory& memory, std::span<s16> out_buffer,
const DecodeArg& req) {
- constexpr static u32 SamplesPerFrame{14};
- constexpr static u32 NibblesPerFrame{16};
+ constexpr u32 SamplesPerFrame{14};
+ constexpr u32 NibblesPerFrame{16};
if (req.buffer == 0 || req.buffer_size == 0) {
return 0;