Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);