aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/midi
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-08-28 14:10:39 -0700
committerChris Robinson <[email protected]>2015-08-28 14:10:39 -0700
commite5fa4ee25dae8b242761052641dca5a4f8091359 (patch)
tree87a4e70d7465ae651e671d62c2e6e399bb210a19 /Alc/midi
parentbbc16e2c15b139cf2ef14eff9b3bcdb4933a5b0e (diff)
Allow for device-specific config values
Diffstat (limited to 'Alc/midi')
-rw-r--r--Alc/midi/fluidsynth.c2
-rw-r--r--Alc/midi/soft.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Alc/midi/fluidsynth.c b/Alc/midi/fluidsynth.c
index 1ddf44c3..976fce78 100644
--- a/Alc/midi/fluidsynth.c
+++ b/Alc/midi/fluidsynth.c
@@ -628,7 +628,7 @@ static ALboolean FSynth_init(FSynth *self, ALCdevice *device)
{
ALfloat vol;
- if(ConfigValueFloat("midi", "volume", &vol))
+ if(ConfigValueFloat(NULL, "midi", "volume", &vol))
{
if(!(vol <= 0.0f))
{
diff --git a/Alc/midi/soft.c b/Alc/midi/soft.c
index e8050173..688924d4 100644
--- a/Alc/midi/soft.c
+++ b/Alc/midi/soft.c
@@ -123,7 +123,7 @@ MidiSynth *SSynth_create(ALCdevice *device)
/* This option is temporary. Once this synth is in a more usable state, a
* more generic selector should be used. */
- if(!GetConfigValueBool("midi", "internal-synth", 0))
+ if(!GetConfigValueBool(NULL, "midi", "internal-synth", 0))
{
TRACE("Not using internal MIDI synth\n");
return NULL;