mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-08-31 13:49:07 +01:00
command_generator: Use u8 for tap index lut
Using this smaller type saves 1024 bytes in the compiled executable.
This commit is contained in:
parent
0b9ef3c0b8
commit
eea68eae18
1 changed files with 8 additions and 8 deletions
|
@ -129,17 +129,17 @@ s32 ToS32(float sample) {
|
||||||
return static_cast<s32>(rescaled_sample);
|
return static_cast<s32>(rescaled_sample);
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr std::array<std::size_t, 20> REVERB_TAP_INDEX_1CH{0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
constexpr std::array<u8, 20> REVERB_TAP_INDEX_1CH{0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
|
||||||
|
|
||||||
constexpr std::array<std::size_t, 20> REVERB_TAP_INDEX_2CH{0, 0, 0, 1, 1, 1, 1, 0, 0, 0,
|
constexpr std::array<u8, 20> REVERB_TAP_INDEX_2CH{0, 0, 0, 1, 1, 1, 1, 0, 0, 0,
|
||||||
1, 1, 1, 0, 0, 0, 0, 1, 1, 1};
|
1, 1, 1, 0, 0, 0, 0, 1, 1, 1};
|
||||||
|
|
||||||
constexpr std::array<std::size_t, 20> REVERB_TAP_INDEX_4CH{0, 0, 0, 1, 1, 1, 1, 2, 2, 2,
|
constexpr std::array<u8, 20> REVERB_TAP_INDEX_4CH{0, 0, 0, 1, 1, 1, 1, 2, 2, 2,
|
||||||
1, 1, 1, 0, 0, 0, 0, 3, 3, 3};
|
1, 1, 1, 0, 0, 0, 0, 3, 3, 3};
|
||||||
|
|
||||||
constexpr std::array<std::size_t, 20> REVERB_TAP_INDEX_6CH{4, 0, 0, 1, 1, 1, 1, 2, 2, 2,
|
constexpr std::array<u8, 20> REVERB_TAP_INDEX_6CH{4, 0, 0, 1, 1, 1, 1, 2, 2, 2,
|
||||||
1, 1, 1, 0, 0, 0, 0, 3, 3, 3};
|
1, 1, 1, 0, 0, 0, 0, 3, 3, 3};
|
||||||
|
|
||||||
template <std::size_t CHANNEL_COUNT>
|
template <std::size_t CHANNEL_COUNT>
|
||||||
void ApplyReverbGeneric(
|
void ApplyReverbGeneric(
|
||||||
|
|
Loading…
Reference in a new issue