summaryrefslogtreecommitdiff
path: root/src/audio_core
diff options
context:
space:
mode:
authorGravatar bunnei2022-05-29 02:33:24 -0700
committerGravatar GitHub2022-05-29 02:33:24 -0700
commit1c8b509441c63e14b05729ac9f38af89c20f5fe3 (patch)
tree02f6de35ec91c4f7d9749f6e791d136103c1c8f8 /src/audio_core
parentMerge pull request #8339 from Docteh/about_icon (diff)
parenttime_zone_manager: Use s8 for month length tables (diff)
downloadyuzu-1c8b509441c63e14b05729ac9f38af89c20f5fe3.tar.gz
yuzu-1c8b509441c63e14b05729ac9f38af89c20f5fe3.tar.xz
yuzu-1c8b509441c63e14b05729ac9f38af89c20f5fe3.zip
Merge pull request #8332 from Morph1984/reduce_exec_size
general: Use smaller array types where applicable
Diffstat (limited to 'src/audio_core')
-rw-r--r--src/audio_core/command_generator.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/audio_core/command_generator.cpp b/src/audio_core/command_generator.cpp
index ae4efafb6..ff20ed00f 100644
--- a/src/audio_core/command_generator.cpp
+++ b/src/audio_core/command_generator.cpp
@@ -129,17 +129,17 @@ s32 ToS32(float sample) {
129 return static_cast<s32>(rescaled_sample); 129 return static_cast<s32>(rescaled_sample);
130} 130}
131 131
132constexpr std::array<std::size_t, 20> REVERB_TAP_INDEX_1CH{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 132constexpr std::array<u8, 20> REVERB_TAP_INDEX_1CH{0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
133 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; 133 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
134 134
135constexpr std::array<std::size_t, 20> REVERB_TAP_INDEX_2CH{0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 135constexpr std::array<u8, 20> REVERB_TAP_INDEX_2CH{0, 0, 0, 1, 1, 1, 1, 0, 0, 0,
136 1, 1, 1, 0, 0, 0, 0, 1, 1, 1}; 136 1, 1, 1, 0, 0, 0, 0, 1, 1, 1};
137 137
138constexpr std::array<std::size_t, 20> REVERB_TAP_INDEX_4CH{0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 138constexpr std::array<u8, 20> REVERB_TAP_INDEX_4CH{0, 0, 0, 1, 1, 1, 1, 2, 2, 2,
139 1, 1, 1, 0, 0, 0, 0, 3, 3, 3}; 139 1, 1, 1, 0, 0, 0, 0, 3, 3, 3};
140 140
141constexpr std::array<std::size_t, 20> REVERB_TAP_INDEX_6CH{4, 0, 0, 1, 1, 1, 1, 2, 2, 2, 141constexpr std::array<u8, 20> REVERB_TAP_INDEX_6CH{4, 0, 0, 1, 1, 1, 1, 2, 2, 2,
142 1, 1, 1, 0, 0, 0, 0, 3, 3, 3}; 142 1, 1, 1, 0, 0, 0, 0, 3, 3, 3};
143 143
144template <std::size_t CHANNEL_COUNT> 144template <std::size_t CHANNEL_COUNT>
145void ApplyReverbGeneric( 145void ApplyReverbGeneric(