From 28d7a4cd5b4bc3df5d034ed9472231d91710a6b6 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 14 Jul 2008 20:40:20 +0000 Subject: failed attempt at multiple simultanious sounds --- src/audio/sources.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/audio/sources.h') diff --git a/src/audio/sources.h b/src/audio/sources.h index 08a2a41..302d5d5 100644 --- a/src/audio/sources.h +++ b/src/audio/sources.h @@ -16,6 +16,7 @@ namespace audio { const size_t MAXSOURCES = 32; +const size_t MAXUISOURCES = 4; /// OpenAL sources wrapper class class Sources { @@ -23,13 +24,9 @@ public: static void init(); static void shutdown(); - static bool available(size_t index) { return source_available[index]; } - - static ALuint source(size_t index) { return sources[index]; } - - /// the sources for user interface sounds - static inline ALuint ui() { return sources[0]; } + static inline bool available(size_t index) { return source_available[index]; } + static inline ALuint source(size_t index) { return sources[index]; } private: static void clear(); -- cgit v1.2.3