Replace MathUtil::Clamp with its std counterpart
This commit is contained in:
parent
14878a17d9
commit
7a3e126a4f
17 changed files with 49 additions and 72 deletions
|
@ -7,7 +7,6 @@
|
|||
#include "audio_core/hle/mixers.h"
|
||||
#include "common/assert.h"
|
||||
#include "common/logging/log.h"
|
||||
#include "common/math_util.h"
|
||||
|
||||
namespace AudioCore {
|
||||
namespace HLE {
|
||||
|
@ -87,7 +86,7 @@ void Mixers::ParseConfig(DspConfiguration& config) {
|
|||
}
|
||||
|
||||
static s16 ClampToS16(s32 value) {
|
||||
return static_cast<s16>(MathUtil::Clamp(value, -32768, 32767));
|
||||
return static_cast<s16>(std::clamp(value, -32768, 32767));
|
||||
}
|
||||
|
||||
static std::array<s16, 2> AddAndClampToS16(const std::array<s16, 2>& a,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue