Skip to content

Commit

Permalink
OpenALBackend: Change check into assert
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed May 31, 2024
1 parent d6e3cf9 commit 6536dc9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/audio/openal/OpenALBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,7 @@ aalError OpenALBackend::setUnitFactor(float factor) {

float speedOfSoundInUnits = speedOfSoundInMetersPerSecond / factor;

if(!arx::safe_isfinite(speedOfSoundInUnits)) {
return AAL_ERROR; // OpenAL soft will lock up if given NaN or +-Inf here
}
arx_assert(arx::safe_isfinite(speedOfSoundInUnits));

alSpeedOfSound(speedOfSoundInUnits);
AL_CHECK_ERROR("scaling speed of sound to unit factor")
Expand Down

0 comments on commit 6536dc9

Please sign in to comment.