Stop the device when updating parameters, don't close it
This commit is contained in:
parent
56899716d6
commit
8d7559d9d0
@ -1698,7 +1698,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
|
||||
/* If a context is already running on the device, stop playback so the
|
||||
* device attributes can be updated. */
|
||||
if((device->Flags&DEVICE_RUNNING))
|
||||
V0(device->Backend,close)();
|
||||
V0(device->Backend,stop)();
|
||||
device->Flags &= ~DEVICE_RUNNING;
|
||||
|
||||
freq = device->Frequency;
|
||||
|
Loading…
x
Reference in New Issue
Block a user