Merge branch 'svn/trunk' r4308
This commit is contained in:
commit
2310498f79
2 changed files with 13 additions and 11 deletions
|
@ -294,7 +294,9 @@ static void DSP_DMA_CallBack(DmaChannel * chan, DMAEvent event) {
|
|||
if (!min_size) min_size = 1;
|
||||
min_size *= 2;
|
||||
if (sb.dma.left > min_size) {
|
||||
if (s > (sb.dma.left-min_size)) s = sb.dma.left - min_size;
|
||||
if (s > (sb.dma.left - min_size)) s = sb.dma.left - min_size;
|
||||
//This will trigger a irq, see GenerateDMASound, so lets not do that
|
||||
if (!sb.dma.autoinit && sb.dma.left <= sb.dma.min) s = 0;
|
||||
if (s) GenerateDMASound(s);
|
||||
}
|
||||
sb.mode = MODE_DMA_MASKED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue