diff options
author | Chris Robinson <[email protected]> | 2018-09-07 22:02:37 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-09-07 22:02:37 -0700 |
commit | 46cfedb1171ace7c21bd1d95c1c75a8274892d3d (patch) | |
tree | ee65f558b5436a6e4d9a5ae188b56238c5fc5453 /Alc/backends/opensl.c | |
parent | 212cb8e298ccfd42e8d44cc2a20108513507e29e (diff) |
Pass the device name list to the backend probe method
Diffstat (limited to 'Alc/backends/opensl.c')
-rw-r--r-- | Alc/backends/opensl.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Alc/backends/opensl.c b/Alc/backends/opensl.c index 262fdaef..50fe77d8 100644 --- a/Alc/backends/opensl.c +++ b/Alc/backends/opensl.c @@ -1030,16 +1030,13 @@ static ALCboolean ALCopenslBackendFactory_querySupport(ALCopenslBackendFactory* return ALC_FALSE; } -static void ALCopenslBackendFactory_probe(ALCopenslBackendFactory* UNUSED(self), enum DevProbe type) +static void ALCopenslBackendFactory_probe(ALCopenslBackendFactory* UNUSED(self), enum DevProbe type, al_string *outnames) { switch(type) { case ALL_DEVICE_PROBE: - AppendAllDevicesList(opensl_device); - break; - case CAPTURE_DEVICE_PROBE: - AppendCaptureDeviceList(opensl_device); + alstr_append_range(outnames, opensl_device, opensl_device+sizeof(opensl_device)); break; } } |