Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/audio
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-20 23:09:23 +0000
committerStijn Buys <ingar@osirion.org>2008-07-20 23:09:23 +0000
commit6e7540c701059ca82de7cc5e2f5089578ab5c469 (patch)
tree5cbb0338c581034528eabfaa8b46fbb99b9d74ee /src/audio
parent166a7c820704c978178b3cb9300eda81dbc23455 (diff)
changed audio reference distance to 2.0f
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/audio.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/audio/audio.cc b/src/audio/audio.cc
index f031841..3be1aa5 100644
--- a/src/audio/audio.cc
+++ b/src/audio/audio.cc
@@ -40,7 +40,11 @@ void init()
Sources::init();
con_debug << " audio device ^B" << alcGetString(audio_device, ALC_DEFAULT_DEVICE_SPECIFIER) << std::endl;
+
+ // the "no sound" sound
load("ui/nosnd");
+
+ // console sound
load("ui/console");
}
@@ -111,7 +115,7 @@ void loop( size_t source_index, const char *name, float pitch, float gain)
ALuint source = Sources::source(source_index);
Buffers::bind(source, Buffers::load(std::string(name)));
- alSourcef(source, AL_REFERENCE_DISTANCE, 4.0f);
+ alSourcef(source, AL_REFERENCE_DISTANCE, 2.0f);
alSourcei(source, AL_SOURCE_RELATIVE, AL_FALSE);
alSourcef(source, AL_PITCH, pitch);
alSourcef(source, AL_GAIN, gain);