codec: Make lookup table static constexpr (#5572)
Allows compilers to elide needing to push these values on the stack every time the function is called. Co-authored-by: Lioncash <mathew1800@gmail.com>
This commit is contained in:
parent
702af87f0d
commit
f0e3637c7a
2 changed files with 4 additions and 3 deletions
|
@ -25,7 +25,7 @@ struct ADPCMState {
|
|||
* @param state ADPCM state, this is updated with new state
|
||||
* @return Decoded stereo signed PCM16 data, sample_count in length
|
||||
*/
|
||||
StereoBuffer16 DecodeADPCM(const u8* const data, const std::size_t sample_count,
|
||||
StereoBuffer16 DecodeADPCM(const u8* data, const std::size_t sample_count,
|
||||
const std::array<s16, 16>& adpcm_coeff, ADPCMState& state);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue