It's always a missing 4 that makes it b0rk
This commit is contained in:
parent
bc085b5eb1
commit
ce902bd6d1
@ -187,10 +187,11 @@ Result csndExecChnCmds(bool waitDone)
|
|||||||
if (csndCmdStartOff == csndCmdCurOff)
|
if (csndCmdStartOff == csndCmdCurOff)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
vu8* flag = (vu8*)&csndSharedMem[csndCmdStartOff>>2];
|
vu8* flag = (vu8*)&csndSharedMem[(csndCmdStartOff + 4) >> 2];
|
||||||
|
|
||||||
ret = CSND_ExecChnCmds(csndCmdStartOff);
|
ret = CSND_ExecChnCmds(csndCmdStartOff);
|
||||||
csndCmdStartOff = csndCmdCurOff;
|
csndCmdStartOff = csndCmdCurOff;
|
||||||
|
if (ret != 0) return ret;
|
||||||
|
|
||||||
// FIXME: This is a really ugly busy waiting loop!
|
// FIXME: This is a really ugly busy waiting loop!
|
||||||
while (waitDone && *flag == 0);
|
while (waitDone && *flag == 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user