Need to initialize stuff in Mic_Init().

This commit is contained in:
riccardom 2009-07-11 14:37:50 +00:00
parent f63909b1d9
commit fd20b10c90
1 changed files with 2 additions and 3 deletions

View File

@ -57,6 +57,7 @@ BOOL Mic_Init()
return FALSE; return FALSE;
Mic_Inited = TRUE; Mic_Inited = TRUE;
Mic_Reset();
return TRUE; return TRUE;
} }
@ -66,10 +67,8 @@ void Mic_Reset()
if (!Mic_Inited) if (!Mic_Inited)
return; return;
memset(Mic_Buffer[0], 0, MIC_BUFSIZE); memset(Mic_Buffer, 0, MIC_BUFSIZE * 2);
memset(Mic_Buffer[1], 0, MIC_BUFSIZE);
Mic_BufPos = 0; Mic_BufPos = 0;
Mic_PlayBuf = 1; Mic_PlayBuf = 1;
} }