Refactor cAudioManager::ProcessActiveQueues, fix doppler effect

This commit is contained in:
Sergeanur
2021-08-12 13:01:07 +03:00
parent f1545daeae
commit 033d89a9ab
2 changed files with 29 additions and 79 deletions

View File

@@ -292,6 +292,8 @@ extern wchar *AllocUnicode(const char*src);
#define Clamp(v, low, high) ((v)<(low) ? (low) : (v)>(high) ? (high) : (v))
#define Clamp2(v, center, radius) ((v) > (center) ? Min(v, center + radius) : Max(v, center - radius))
inline float sq(float x) { return x*x; }
#define SQR(x) ((x) * (x))