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-06-18 21:42:38 +0000
committerStijn Buys <ingar@osirion.org>2008-06-18 21:42:38 +0000
commitfd6f22924fd0d85ee20fb1d5e4588ac441675ea9 (patch)
tree8a3db75e46390c3801a820589ffe628323bb46ab /src/audio
parentc5dddd62db3e070b89cb774abfd90cc3387a6d52 (diff)
ui sounds
Diffstat (limited to 'src/audio')
-rw-r--r--src/audio/audio.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/audio/audio.cc b/src/audio/audio.cc
index 842395f..729f3d2 100644
--- a/src/audio/audio.cc
+++ b/src/audio/audio.cc
@@ -71,6 +71,8 @@ void shutdown()
void play(const char *name)
{
+ Buffers::load(std::string(name));
+
if (Sources::available(0)) {
alSourceRewind(Sources::ui());
Buffers::bind(Sources::ui(), std::string(name));