mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 15:35:46 +00:00
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:
parent
d2d0909b84
commit
f2c756b0f4
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue