summaryrefslogtreecommitdiffstats
path: root/src/sound/oalsound
diff options
context:
space:
mode:
authorerihel <erihel@gmail.com>2013-04-07 16:26:15 +0200
committererihel <erihel@gmail.com>2013-04-07 16:26:15 +0200
commit7513bc5864efce2d6366f8836f1cb178adff6965 (patch)
treea782d0d185dcc28805b51d3ed28dc458019e29a0 /src/sound/oalsound
parentf4b1cabbde0187c7429e31ff344814adf35c4bc1 (diff)
downloadcolobot-7513bc5864efce2d6366f8836f1cb178adff6965.tar.gz
colobot-7513bc5864efce2d6366f8836f1cb178adff6965.tar.bz2
colobot-7513bc5864efce2d6366f8836f1cb178adff6965.zip
* Set distance model to fix issue #123
Diffstat (limited to 'src/sound/oalsound')
-rw-r--r--src/sound/oalsound/alsound.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sound/oalsound/alsound.cpp b/src/sound/oalsound/alsound.cpp
index 660363e..21f11b7 100644
--- a/src/sound/oalsound/alsound.cpp
+++ b/src/sound/oalsound/alsound.cpp
@@ -82,6 +82,7 @@ bool ALSound::Create(bool b3D)
}
alcMakeContextCurrent(mContext);
alListenerf(AL_GAIN, mAudioVolume);
+ alDistanceModel(AL_LINEAR_DISTANCE);
mCurrentMusic = new Channel();
GetLogger()->Info("Done.\n");