]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/client/sound_openal.cpp
Remove unused ITextSceneNode header (#11476)
[dragonfireclient.git] / src / client / sound_openal.cpp
index c1c916e68325295ef3796450bc05c39f2b19f3a5..8dceeede65f1ca884715d0cfdda6135290c03700 100644 (file)
@@ -28,6 +28,7 @@ with this program; ifnot, write to the Free Software Foundation, Inc.,
        #include <alc.h>
        //#include <alext.h>
 #elif defined(__APPLE__)
+       #define OPENAL_DEPRECATED
        #include <OpenAL/al.h>
        #include <OpenAL/alc.h>
        //#include <OpenAL/alext.h>
@@ -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)