Stop the device when updating parameters, don't close it

This commit is contained in:
Chris Robinson 2014-01-15 16:30:23 -08:00
parent 56899716d6
commit 8d7559d9d0

View File

@ -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;