diff options
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 1 | ||||
-rw-r--r-- | Alc/alconfig.c (renamed from Alc/alcConfig.c) | 1 | ||||
-rw-r--r-- | Alc/alconfig.h | 17 | ||||
-rw-r--r-- | Alc/backends/alsa.c | 1 | ||||
-rw-r--r-- | Alc/backends/jack.c | 1 | ||||
-rw-r--r-- | Alc/backends/oss.c | 1 | ||||
-rw-r--r-- | Alc/backends/portaudio.c | 1 | ||||
-rw-r--r-- | Alc/backends/pulseaudio.c | 1 | ||||
-rw-r--r-- | Alc/backends/solaris.c | 1 | ||||
-rw-r--r-- | Alc/backends/wave.c | 1 | ||||
-rw-r--r-- | Alc/hrtf.c | 1 | ||||
-rw-r--r-- | Alc/mixer.c | 1 | ||||
-rw-r--r-- | Alc/panning.c | 1 |
13 files changed, 29 insertions, 0 deletions
@@ -40,6 +40,7 @@ #include "mastering.h" #include "bformatdec.h" #include "alu.h" +#include "alconfig.h" #include "cpu_caps.h" #include "compat.h" diff --git a/Alc/alcConfig.c b/Alc/alconfig.c index 6fd01746..1115bf30 100644 --- a/Alc/alcConfig.c +++ b/Alc/alconfig.c @@ -38,6 +38,7 @@ #endif #include "alMain.h" +#include "alconfig.h" #include "compat.h" #include "bool.h" diff --git a/Alc/alconfig.h b/Alc/alconfig.h new file mode 100644 index 00000000..1e493e2e --- /dev/null +++ b/Alc/alconfig.h @@ -0,0 +1,17 @@ +#ifndef ALCONFIG_H +#define ALCONFIG_H + +void ReadALConfig(void); +void FreeALConfig(void); + +int ConfigValueExists(const char *devName, const char *blockName, const char *keyName); +const char *GetConfigValue(const char *devName, const char *blockName, const char *keyName, const char *def); +int GetConfigValueBool(const char *devName, const char *blockName, const char *keyName, int def); + +int ConfigValueStr(const char *devName, const char *blockName, const char *keyName, const char **ret); +int ConfigValueInt(const char *devName, const char *blockName, const char *keyName, int *ret); +int ConfigValueUInt(const char *devName, const char *blockName, const char *keyName, unsigned int *ret); +int ConfigValueFloat(const char *devName, const char *blockName, const char *keyName, float *ret); +int ConfigValueBool(const char *devName, const char *blockName, const char *keyName, int *ret); + +#endif /* ALCONFIG_H */ diff --git a/Alc/backends/alsa.c b/Alc/backends/alsa.c index 79f2795a..f941ce4b 100644 --- a/Alc/backends/alsa.c +++ b/Alc/backends/alsa.c @@ -26,6 +26,7 @@ #include "alMain.h" #include "alu.h" +#include "alconfig.h" #include "threads.h" #include "compat.h" diff --git a/Alc/backends/jack.c b/Alc/backends/jack.c index ceff0b3a..4ef9006c 100644 --- a/Alc/backends/jack.c +++ b/Alc/backends/jack.c @@ -26,6 +26,7 @@ #include "alMain.h" #include "alu.h" +#include "alconfig.h" #include "threads.h" #include "compat.h" diff --git a/Alc/backends/oss.c b/Alc/backends/oss.c index 9c63d9d2..196432e1 100644 --- a/Alc/backends/oss.c +++ b/Alc/backends/oss.c @@ -35,6 +35,7 @@ #include "alMain.h" #include "alu.h" +#include "alconfig.h" #include "threads.h" #include "compat.h" diff --git a/Alc/backends/portaudio.c b/Alc/backends/portaudio.c index 807e8000..0f4672c4 100644 --- a/Alc/backends/portaudio.c +++ b/Alc/backends/portaudio.c @@ -26,6 +26,7 @@ #include "alMain.h" #include "alu.h" +#include "alconfig.h" #include "compat.h" #include "backends/base.h" diff --git a/Alc/backends/pulseaudio.c b/Alc/backends/pulseaudio.c index 8c5469b2..9f3c4762 100644 --- a/Alc/backends/pulseaudio.c +++ b/Alc/backends/pulseaudio.c @@ -25,6 +25,7 @@ #include "alMain.h" #include "alu.h" +#include "alconfig.h" #include "threads.h" #include "compat.h" diff --git a/Alc/backends/solaris.c b/Alc/backends/solaris.c index 5dfb5084..59cc5ddc 100644 --- a/Alc/backends/solaris.c +++ b/Alc/backends/solaris.c @@ -34,6 +34,7 @@ #include "alMain.h" #include "alu.h" +#include "alconfig.h" #include "threads.h" #include "compat.h" diff --git a/Alc/backends/wave.c b/Alc/backends/wave.c index bdf76edc..1c502fd9 100644 --- a/Alc/backends/wave.c +++ b/Alc/backends/wave.c @@ -27,6 +27,7 @@ #include "alMain.h" #include "alu.h" +#include "alconfig.h" #include "threads.h" #include "compat.h" @@ -30,6 +30,7 @@ #include "alu.h" #include "bformatdec.h" #include "hrtf.h" +#include "alconfig.h" #include "compat.h" #include "almalloc.h" diff --git a/Alc/mixer.c b/Alc/mixer.c index 3d1da58f..b1d859c6 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -34,6 +34,7 @@ #include "alListener.h" #include "alAuxEffectSlot.h" #include "alu.h" +#include "alconfig.h" #include "cpu_caps.h" #include "mixer_defs.h" diff --git a/Alc/panning.c b/Alc/panning.c index 37bf3ac9..dfb71918 100644 --- a/Alc/panning.c +++ b/Alc/panning.c @@ -29,6 +29,7 @@ #include "alMain.h" #include "alAuxEffectSlot.h" #include "alu.h" +#include "alconfig.h" #include "bool.h" #include "ambdec.h" #include "bformatdec.h" |