diff options
author | Chris Robinson <[email protected]> | 2018-11-15 19:42:13 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-15 19:42:13 -0800 |
commit | 4311c609e48d954e8fde9b6c3bf8077cfac8efa0 (patch) | |
tree | e3a584cd527ae99b0fdde173b583659b4fac836a /Alc/alc.cpp | |
parent | 49d8ac2537a03dd8d1a60fa4667dc6090da6bcc5 (diff) |
Update the loopback backend
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r-- | Alc/alc.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp index 04300d8a..0be0e575 100644 --- a/Alc/alc.cpp +++ b/Alc/alc.cpp @@ -58,6 +58,7 @@ #include "backends/base.h" #include "backends/null.h" +#include "backends/loopback.h" namespace { @@ -1127,10 +1128,7 @@ static void alc_initconfig(void) } BackendListSize = n; - { - ALCbackendFactory *factory = ALCloopbackFactory_getFactory(); - V0(factory,init)(); - } + LoopbackBackendFactory::getFactory().init(); if(!PlaybackBackend.name) WARN("No playback backend available!\n"); @@ -1217,10 +1215,7 @@ static void alc_deinit(void) for(i = 0;i < BackendListSize;i++) BackendList[i].getFactory().deinit(); - { - ALCbackendFactory *factory = ALCloopbackFactory_getFactory(); - V0(factory,deinit)(); - } + LoopbackBackendFactory::getFactory().deinit(); alc_deinit_safe(); } @@ -4452,8 +4447,8 @@ ALC_API ALCdevice* ALC_APIENTRY alcLoopbackOpenDeviceSOFT(const ALCchar *deviceN device->NumStereoSources = 1; device->NumMonoSources = device->SourcesMax - device->NumStereoSources; - ALCbackendFactory *factory = ALCloopbackFactory_getFactory(); - device->Backend = V(factory,createBackend)(device, ALCbackend_Loopback); + device->Backend = LoopbackBackendFactory::getFactory().createBackend( + device, ALCbackend_Loopback); if(!device->Backend) { al_free(device); |