diff --git a/src/Assistants/BasicAudioSpec.hpp b/src/Assistants/BasicAudioSpec.hpp index 66a4f3b..a0ccd6d 100644 --- a/src/Assistants/BasicAudioSpec.hpp +++ b/src/Assistants/BasicAudioSpec.hpp @@ -7,6 +7,7 @@ #pragma once #include +#include #include #include #include @@ -94,7 +95,7 @@ class AudioSpecBlock { auto getVolumeNorm() const noexcept { return mVolume / 255.0f; } auto getSampleRate(f32 framerate) const noexcept { - return std::fabs(framerate) > 1e-6f ? mSpec.freq / framerate : 0.0f; + return std::abs(framerate) > 1e-6f ? mSpec.freq / framerate : 0.0f; } void setVolume(s32 value) noexcept {