diff options
author | Chris Robinson <[email protected]> | 2015-08-28 14:10:39 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-08-28 14:10:39 -0700 |
commit | e5fa4ee25dae8b242761052641dca5a4f8091359 (patch) | |
tree | 87a4e70d7465ae651e671d62c2e6e399bb210a19 /Alc/backends/portaudio.c | |
parent | bbc16e2c15b139cf2ef14eff9b3bcdb4933a5b0e (diff) |
Allow for device-specific config values
Diffstat (limited to 'Alc/backends/portaudio.c')
-rw-r--r-- | Alc/backends/portaudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |