codec: Make lookup table static constexpr

Allows compilers to elide needing to push these values on the stack
every time the function is called.
This commit is contained in:
Lioncash 2020-09-25 14:18:09 -04:00
parent 4d4afc1502
commit 7c0908f301
2 changed files with 4 additions and 3 deletions

View file

@ -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