From 840952a06ab0b43bf9bba931cd18aedf9e55970f Mon Sep 17 00:00:00 2001 From: luigi__ Date: Mon, 12 Jan 2009 16:41:57 +0000 Subject: [PATCH] Fixed microphone problem 3 : the emu doesn't freeze anymore when closing it. --- desmume/src/windows/mic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desmume/src/windows/mic.cpp b/desmume/src/windows/mic.cpp index e4a250b0e..f8e1df38d 100644 --- a/desmume/src/windows/mic.cpp +++ b/desmume/src/windows/mic.cpp @@ -101,10 +101,10 @@ void Mic_DeInit() if(!Mic_Inited) return; + Mic_Inited = FALSE; + waveInReset(waveIn); waveInClose(waveIn); - - Mic_Inited = FALSE; } u8 Mic_ReadSample()