win32: reset mic button buffer pos if not pressed

This commit is contained in:
p989 2009-06-11 04:14:42 +00:00
parent 947356fbe1
commit 1c1dd8bb30
1 changed files with 7 additions and 3 deletions

View File

@ -177,9 +177,13 @@ u8 Mic_ReadSample()
if(x == ARRAY_SIZE(random)*2)
x=0;
}
} else {
}
else {
//normal mic behavior
tmp = (u8)Mic_Buffer[Mic_PlayBuf][Mic_BufPos >> 1];
//reset mic button buffer pos if not pressed
x=0;
}
if(Mic_BufPos & 0x1)