Stop capture devices while closing
commit35b78d55a4554d41bfcb8864c080ea1164c9b183
authorkdhp <kdhp@users.noreply.github.com>
Fri, 8 Jun 2018 01:42:13 +0000 (8 01:42 +0000)
committerkdhp <kdhp@users.noreply.github.com>
Fri, 8 Jun 2018 01:42:13 +0000 (8 01:42 +0000)
tree0dba9aa357f8640b89f44e56ee78e677f5671f75
parentbd9c6989c20ea40cc12dd54105ec708c4b28beaa
Stop capture devices while closing

In 'alcCaptureCloseDevice', check if the capture device is
running and stop it if necessary.
This fixes the case where the device data is deallocated while
a background thread is still running (Issue #199)
Alc/ALc.c