diff options
Diffstat (limited to 'plugins')
| -rwxr-xr-x | plugins/dfsound/spu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/dfsound/spu.c b/plugins/dfsound/spu.c index c19be6e9..5f5ecf11 100755 --- a/plugins/dfsound/spu.c +++ b/plugins/dfsound/spu.c @@ -1125,8 +1125,6 @@ void CALLBACK SPUasync(unsigned long cycle) iSpuAsyncWait++; if(iSpuAsyncWait<=64) return; iSpuAsyncWait=0; - - cpu_cycles = cycle; } #ifdef _WINDOWS @@ -1155,7 +1153,9 @@ void CALLBACK SPUasync(unsigned long cycle) MAINThread(0); // -> linux high-compat mode #endif - cpu_cycles -= CPU_CLOCK / 44100 * NSSIZE; + if (iSpuAsyncWait) + break; + cpu_cycles -= CPU_CLOCK / 44100 * NSSIZE; } } } |
