Ken Thomases : winecoreaudio: Changed widReset to stop the audio unit.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Dec 29 06:47:23 CST 2006
Module: wine
Branch: master
Commit: 335ab8c1a2e04e44bd845500310765b6123218c8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=335ab8c1a2e04e44bd845500310765b6123218c8
Author: Ken Thomases <ken at codeweavers.com>
Date: Thu Dec 28 11:06:56 2006 -0600
winecoreaudio: Changed widReset to stop the audio unit.
---
dlls/winmm/winecoreaudio/audio.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/dlls/winmm/winecoreaudio/audio.c b/dlls/winmm/winecoreaudio/audio.c
index 10a01fc..63d18ce 100644
--- a/dlls/winmm/winecoreaudio/audio.c
+++ b/dlls/winmm/winecoreaudio/audio.c
@@ -1931,6 +1931,15 @@ static DWORD widReset(WORD wDevID)
OSSpinLockUnlock(&wwi->lock);
+ if (ret == MMSYSERR_NOERROR)
+ {
+ OSStatus err = AudioOutputUnitStop(wwi->audioUnit);
+ if (err != noErr)
+ WARN("Failed to stop AU: %08lx\n", err);
+
+ TRACE("Recording stopped.\n");
+ }
+
while (lpWaveHdr)
{
WAVEHDR* lpNext = lpWaveHdr->lpNext;
More information about the wine-cvs
mailing list