X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fclient%2Fsound_openal.cpp;h=8dceeede65f1ca884715d0cfdda6135290c03700;hb=a049e8267fabd101cb5c6528b3270214cb0647f0;hp=c1c916e68325295ef3796450bc05c39f2b19f3a5;hpb=5bda36143f9bd332b6ba420d9b91be1713092eae;p=dragonfireclient.git diff --git a/src/client/sound_openal.cpp b/src/client/sound_openal.cpp index c1c916e68..8dceeede6 100644 --- a/src/client/sound_openal.cpp +++ b/src/client/sound_openal.cpp @@ -28,6 +28,7 @@ with this program; ifnot, write to the Free Software Foundation, Inc., #include //#include #elif defined(__APPLE__) + #define OPENAL_DEPRECATED #include #include //#include @@ -670,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)