This commit is contained in:
dborth 2010-07-09 03:19:29 +00:00
parent 8eb7ad5672
commit 89cb25a2b6

View file

@ -61,10 +61,11 @@ AudioThread (void *arg)
if(stopaudio) if(stopaudio)
break; break;
memset(dma_buffers[whichab], 0, SAMPLES_PER_DMA_BUFFER*4);
// Is the device ready? // Is the device ready?
if (!current_audio || current_audio->paused) 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); DCFlushRange(dma_buffers[whichab], SAMPLES_PER_DMA_BUFFER*4);
dma_buffers_size[whichab] = SAMPLES_PER_DMA_BUFFER*4; dma_buffers_size[whichab] = SAMPLES_PER_DMA_BUFFER*4;
} }