Add const to dest parameter of MV_Reverb()

git-svn-id: https://svn.eduke32.com/eduke32@8184 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-10-19 23:44:57 +00:00 committed by Christoph Oelckers
parent 9756db95ca
commit a278a85b3b
2 changed files with 3 additions and 3 deletions

View file

@ -259,7 +259,7 @@ void MV_ReleaseXMPVoice(VoiceNode *voice);
// implemented in mix.c
template <typename S, typename D> uint32_t MV_MixMono(struct VoiceNode * const voice, uint32_t length);
template <typename S, typename D> uint32_t MV_MixStereo(struct VoiceNode * const voice, uint32_t length);
template <typename T> void MV_Reverb(char const *src, char *dest, const float volume, int32_t count);
template <typename T> void MV_Reverb(char const *src, char * const dest, const float volume, int32_t count);
// implemented in mixst.c
template <typename S, typename D> uint32_t MV_MixMonoStereo(struct VoiceNode * const voice, uint32_t length);

View file

@ -24,7 +24,7 @@ template uint32_t MV_MixMono<uint8_t, int16_t>(struct VoiceNode * const voice, u
template uint32_t MV_MixStereo<uint8_t, int16_t>(struct VoiceNode * const voice, uint32_t length);
template uint32_t MV_MixMono<int16_t, int16_t>(struct VoiceNode * const voice, uint32_t length);
template uint32_t MV_MixStereo<int16_t, int16_t>(struct VoiceNode * const voice, uint32_t length);
template void MV_Reverb<int16_t>(char const *src, char *dest, const float volume, int32_t count);
template void MV_Reverb<int16_t>(char const *src, char * const dest, const float volume, int32_t count);
/*
length = count of samples to mix
@ -95,7 +95,7 @@ uint32_t MV_MixStereo(struct VoiceNode * const voice, uint32_t length)
}
template <typename T>
void MV_Reverb(char const *src, char *dest, const float volume, int32_t count)
void MV_Reverb(char const *src, char * const dest, const float volume, int32_t count)
{
auto input = (T const *)src;
auto output = (T *)dest;