Skip to content

Commit

Permalink
Prefixing abs with std::
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed Aug 22, 2024
1 parent af00222 commit 7cab741
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Emulator/Components/Ports/AudioPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 +416,8 @@ AudioPort::synthesize(Cycle clock, long count, double cyclesPerSample)
r *= volR;

// Prevent hearing loss
assert(abs(l) < 1.0);
assert(abs(r) < 1.0);
assert(std::abs(l) < 1.0);
assert(std::abs(r) < 1.0);

// Write sample into ringbuffer
stream.write( SamplePair { float(l), float(r) } );
Expand Down

0 comments on commit 7cab741

Please sign in to comment.