Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-07-14 20:40:20 +0000
committerStijn Buys <ingar@osirion.org>2008-07-14 20:40:20 +0000
commit28d7a4cd5b4bc3df5d034ed9472231d91710a6b6 (patch)
tree18c0d5df6c0a4b3f406869c86f5fe2f3b63ca299 /src/audio/sources.h
parentf9dad976adca728a5996450334dcabf57fef2443 (diff)
failed attempt at multiple simultanious sounds
Diffstat (limited to 'src/audio/sources.h')
-rw-r--r--src/audio/sources.h9
1 files changed, 3 insertions, 6 deletions
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();