Handle terminal count event to prevent repeated loop
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1821
This commit is contained in:
parent
b7fb90dbd5
commit
56de26f7df
1 changed files with 1 additions and 0 deletions
|
@ -234,6 +234,7 @@ static void DSP_StopDMA(void) {
|
|||
}
|
||||
|
||||
static void DSP_DMA_CallBack(DmaChannel * chan, DMAEvent event) {
|
||||
if (event==DMA_REACHED_TC) return;
|
||||
if (event==DMA_MASKED) sb.dma.active=false;
|
||||
if (event==DMA_UNMASKED) sb.dma.active=true;
|
||||
if (sb.mode==MODE_DMA_WAIT && sb.dma.active) {
|
||||
|
|
Loading…
Add table
Reference in a new issue