@@ -406,7 +406,7 @@ class OpenALSoundManager: public ISoundManager
406
406
alSource3f (sound->source_id , AL_POSITION, 0 , 0 , 0 );
407
407
alSource3f (sound->source_id , AL_VELOCITY, 0 , 0 , 0 );
408
408
alSourcei (sound->source_id , AL_LOOPING, loop ? AL_TRUE : AL_FALSE);
409
- volume = std::max (0 .0f , volume);
409
+ volume = std::fmax (0 .0f , volume);
410
410
alSourcef (sound->source_id , AL_GAIN, volume);
411
411
alSourcef (sound->source_id , AL_PITCH, pitch);
412
412
alSourcePlay (sound->source_id );
@@ -435,7 +435,7 @@ class OpenALSoundManager: public ISoundManager
435
435
alSourcei (sound->source_id , AL_LOOPING, loop ? AL_TRUE : AL_FALSE);
436
436
// Multiply by 3 to compensate for reducing AL_REFERENCE_DISTANCE from
437
437
// the previous value of 30 to the new value of 10
438
- volume = std::max (0 .0f , volume * 3 .0f );
438
+ volume = std::fmax (0 .0f , volume * 3 .0f );
439
439
alSourcef (sound->source_id , AL_GAIN, volume);
440
440
alSourcef (sound->source_id , AL_PITCH, pitch);
441
441
alSourcePlay (sound->source_id );
0 commit comments