diff options
Diffstat (limited to 'src/DSUtil/AudioTools.h')
-rw-r--r-- | src/DSUtil/AudioTools.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/DSUtil/AudioTools.h b/src/DSUtil/AudioTools.h index 479f3a054..ed154f192 100644 --- a/src/DSUtil/AudioTools.h +++ b/src/DSUtil/AudioTools.h @@ -35,6 +35,8 @@ #define INT24_PEAK 8388608 #define INT32_PEAK 2147483648 +#define limit(a, x, b) if ((x) < (a)) { x = a; } else if ((x) > (b)) { x = b;} + void gain_uint8(const double factor, const size_t allsamples, uint8_t* pData); void gain_int16(const double factor, const size_t allsamples, int16_t* pData); void gain_int24(const double factor, const size_t allsamples, BYTE* pData); |