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