diff options
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALu.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1381,14 +1381,13 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) ALvoid aluHandleDisconnect(ALCdevice *device) { - if(!device->IsCaptureDevice) + if(device->Context) { - ALsource *source = NULL; + ALsource *source; SuspendContext(device->Context); - if(device->Context) - source = device->Context->Source; + source = device->Context->Source; while(source) { if(source->state == AL_PLAYING) |