diff options
author | Chris Robinson <[email protected]> | 2012-03-05 15:06:16 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-03-05 15:10:02 -0800 |
commit | 6623f694767f8eb0b50f548e11108483302ea16a (patch) | |
tree | c9f39015ac0b3c9174696e525b01c5790c25c219 /Alc/ALc.c | |
parent | db365746677138a1eeda0f21305ffcdb36cacd09 (diff) |
Mark the device as running for capture, too
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1744,7 +1744,11 @@ ALC_API void ALC_APIENTRY alcCaptureStart(ALCdevice *device) return; } if(device->Connected) - ALCdevice_StartCapture(device); + { + if(!(device->Flags&DEVICE_RUNNING)) + ALCdevice_StartCapture(device); + device->Flags |= DEVICE_RUNNING; + } UnlockLists(); ALCdevice_DecRef(device); @@ -1760,8 +1764,9 @@ ALC_API void ALC_APIENTRY alcCaptureStop(ALCdevice *device) if(device) ALCdevice_DecRef(device); return; } - if(device->Connected) + if((device->Flags&DEVICE_RUNNING)) ALCdevice_StopCapture(device); + device->Flags &= ~DEVICE_RUNNING; UnlockLists(); ALCdevice_DecRef(device); |