From e5fa4ee25dae8b242761052641dca5a4f8091359 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 28 Aug 2015 14:10:39 -0700 Subject: Allow for device-specific config values --- Alc/backends/portaudio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/backends/portaudio.c') diff --git a/Alc/backends/portaudio.c b/Alc/backends/portaudio.c index 7c0cf4a6..c54a2ab7 100644 --- a/Alc/backends/portaudio.c +++ b/Alc/backends/portaudio.c @@ -167,7 +167,7 @@ static ALCenum pa_open_playback(ALCdevice *device, const ALCchar *deviceName) data->update_size = device->UpdateSize; data->params.device = -1; - if(!ConfigValueInt("port", "device", &data->params.device) || + if(!ConfigValueInt(NULL, "port", "device", &data->params.device) || data->params.device < 0) data->params.device = Pa_GetDefaultOutputDevice(); data->params.suggestedLatency = (device->UpdateSize*device->NumUpdates) / @@ -319,7 +319,7 @@ static ALCenum pa_open_capture(ALCdevice *device, const ALCchar *deviceName) goto error; data->params.device = -1; - if(!ConfigValueInt("port", "capture", &data->params.device) || + if(!ConfigValueInt(NULL, "port", "capture", &data->params.device) || data->params.device < 0) data->params.device = Pa_GetDefaultInputDevice(); data->params.suggestedLatency = 0.0f; -- cgit v1.2.3