From fd6f22924fd0d85ee20fb1d5e4588ac441675ea9 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 18 Jun 2008 21:42:38 +0000 Subject: ui sounds --- src/audio/audio.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/audio') 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)); -- cgit v1.2.3