Set the loopback backend functions first
This commit is contained in:
parent
5290c820b4
commit
29d58f3d84
@ -2560,6 +2560,7 @@ ALC_API ALCdevice* ALC_APIENTRY alcLoopbackOpenDeviceSOFT(void)
|
||||
}
|
||||
|
||||
//Validate device
|
||||
device->Funcs = &BackendLoopback.Funcs;
|
||||
device->Connected = ALC_TRUE;
|
||||
device->IsCaptureDevice = AL_FALSE;
|
||||
device->IsLoopbackDevice = AL_TRUE;
|
||||
@ -2604,7 +2605,6 @@ ALC_API ALCdevice* ALC_APIENTRY alcLoopbackOpenDeviceSOFT(void)
|
||||
|
||||
// Open the "backend"
|
||||
LockLists();
|
||||
device->Funcs = &BackendLoopback.Funcs;
|
||||
ALCdevice_OpenPlayback(device, "Loopback");
|
||||
|
||||
device->next = g_pDeviceList;
|
||||
|
Loading…
x
Reference in New Issue
Block a user