Skip to content

Commit

Permalink
Fix attached-to-object sounds having a higher reference distance
Browse files Browse the repository at this point in the history
  • Loading branch information
Desour authored and sfan5 committed Mar 23, 2021
1 parent 2da1eee commit 437d011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/sound_openal.cpp
Expand Up @@ -671,8 +671,8 @@ class OpenALSoundManager: public ISoundManager

alSourcei(sound->source_id, AL_SOURCE_RELATIVE, false);
alSource3f(sound->source_id, AL_POSITION, pos.X, pos.Y, pos.Z);
alSource3f(sound->source_id, AL_VELOCITY, 0, 0, 0);
alSourcef(sound->source_id, AL_REFERENCE_DISTANCE, 30.0);
alSource3f(sound->source_id, AL_VELOCITY, 0.0f, 0.0f, 0.0f);
alSourcef(sound->source_id, AL_REFERENCE_DISTANCE, 10.0f);
}

bool updateSoundGain(int id, float gain)
Expand Down

0 comments on commit 437d011

Please sign in to comment.