winecoreaudio: Changed widReset to stop the audio unit.

This commit is contained in:
Ken Thomases 2006-12-28 11:06:56 -06:00 committed by Alexandre Julliard
parent cff4da8db8
commit 335ab8c1a2

View File

@ -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;