diff options
author | Lioncash <mathew1800@gmail.com> | 2020-09-25 14:18:09 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-09-25 14:24:25 -0400 |
commit | 7c0908f301867b7f8667d7720094a3ad3616dd53 (patch) | |
tree | 598283935dbaebaab37c5ab660ab05c696c35971 /src/audio_core/codec.h | |
parent | 4d4afc150294483e6090626022be55b1dfdfd498 (diff) |
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>; * @param state ADPCM state, this is updated with new state * @return Decoded stereo signed PCM16 data, sample_count in length */ -std::vector<s16> DecodeADPCM(const u8* const data, std::size_t size, const ADPCM_Coeff& coeff, +std::vector<s16> DecodeADPCM(const u8* data, std::size_t size, const ADPCM_Coeff& coeff, ADPCMState& state); }; // namespace AudioCore::Codec |