Skip to content

Commit

Permalink
Include missing header...
Browse files Browse the repository at this point in the history
  • Loading branch information
coornio committed Sep 21, 2024
1 parent f177fee commit 067c33f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Assistants/BasicAudioSpec.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#pragma once

#include <span>
#include <cmath>
#include <vector>
#include <utility>
#include <algorithm>
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 067c33f

Please sign in to comment.