From 49d25899a706bd1ad02fd9a315b3ec6319664f8e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 4 Aug 2011 16:53:40 -0700 Subject: [PATCH] Cleanup formatting --- capture.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/capture.c b/capture.c index dc28e2d..dc0c12b 100644 --- a/capture.c +++ b/capture.c @@ -583,13 +583,12 @@ static HRESULT WINAPI DSCBuffer_Stop(IDirectSoundCaptureBuffer8 *iface) if(This->playing) { DWORD i; - - for (i = 0; i < This->nnotify; ++i) - if (This->notify[i].dwOffset == DSCBPN_OFFSET_STOP) - { + for(i = 0;i < This->nnotify;++i) + { + if(This->notify[i].dwOffset == DSCBPN_OFFSET_STOP) SetEvent(This->notify[i].hEventNotify); - break; - } + } + This->playing = This->looping = 0; alcCaptureStop(This->dev); } -- 2.11.4.GIT