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