This commit is contained in:
parent
8eb7ad5672
commit
89cb25a2b6
|
@ -61,10 +61,11 @@ AudioThread (void *arg)
|
|||
if(stopaudio)
|
||||
break;
|
||||
|
||||
memset(dma_buffers[whichab], 0, SAMPLES_PER_DMA_BUFFER*4);
|
||||
|
||||
// Is the device ready?
|
||||
if (!current_audio || current_audio->paused)
|
||||
{
|
||||
memset(dma_buffers[whichab], 0, SAMPLES_PER_DMA_BUFFER*4);
|
||||
DCFlushRange(dma_buffers[whichab], SAMPLES_PER_DMA_BUFFER*4);
|
||||
dma_buffers_size[whichab] = SAMPLES_PER_DMA_BUFFER*4;
|
||||
}
|
||||
|
|
Reference in a new issue