diff options
| author | 2020-09-25 14:18:09 -0400 | |
|---|---|---|
| committer | 2020-09-25 14:24:25 -0400 | |
| commit | 7c0908f301867b7f8667d7720094a3ad3616dd53 (patch) | |
| tree | 598283935dbaebaab37c5ab660ab05c696c35971 /src/audio_core/codec.h | |
| parent | Merge pull request #4717 from lioncash/debug (diff) | |
| download | yuzu-7c0908f301867b7f8667d7720094a3ad3616dd53.tar.gz yuzu-7c0908f301867b7f8667d7720094a3ad3616dd53.tar.xz yuzu-7c0908f301867b7f8667d7720094a3ad3616dd53.zip | |
codec: Make lookup table static constexpr
Allows compilers to elide needing to push these values on the stack
every time the function is called.
Diffstat (limited to 'src/audio_core/codec.h')
| -rw-r--r-- | src/audio_core/codec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/codec.h b/src/audio_core/codec.h index ef2ce01a8..9507abb1b 100644 --- a/src/audio_core/codec.h +++ b/src/audio_core/codec.h | |||
| @@ -38,7 +38,7 @@ using ADPCM_Coeff = std::array<s16, 16>; | |||
| 38 | * @param state ADPCM state, this is updated with new state | 38 | * @param state ADPCM state, this is updated with new state |
| 39 | * @return Decoded stereo signed PCM16 data, sample_count in length | 39 | * @return Decoded stereo signed PCM16 data, sample_count in length |
| 40 | */ | 40 | */ |
| 41 | std::vector<s16> DecodeADPCM(const u8* const data, std::size_t size, const ADPCM_Coeff& coeff, | 41 | std::vector<s16> DecodeADPCM(const u8* data, std::size_t size, const ADPCM_Coeff& coeff, |
| 42 | ADPCMState& state); | 42 | ADPCMState& state); |
| 43 | 43 | ||
| 44 | }; // namespace AudioCore::Codec | 44 | }; // namespace AudioCore::Codec |