Fixed another PlaySound bug (when SND_LOOP is requested).
This commit is contained in:
parent
e3bd1361f1
commit
80884be68c
|
@ -549,10 +549,11 @@ static DWORD WINAPI proc_PlaySound(LPVOID arg)
|
||||||
goto errCleanUp;
|
goto errCleanUp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s.dwEventCount = 1L; /* for first buffer */
|
||||||
|
|
||||||
do {
|
do {
|
||||||
index = 0;
|
index = 0;
|
||||||
left = mmckInfo.cksize;
|
left = mmckInfo.cksize;
|
||||||
s.dwEventCount = 1L; /* for first buffer */
|
|
||||||
|
|
||||||
mmioSeek(hmmio, mmckInfo.dwDataOffset, SEEK_SET);
|
mmioSeek(hmmio, mmckInfo.dwDataOffset, SEEK_SET);
|
||||||
while (left)
|
while (left)
|
||||||
|
|
Loading…
Reference in New Issue