diff --git a/SDL/src/audio/wii/SDL_wiiaudio.c b/SDL/src/audio/wii/SDL_wiiaudio.c index 9bfecc4..b97cfd1 100644 --- a/SDL/src/audio/wii/SDL_wiiaudio.c +++ b/SDL/src/audio/wii/SDL_wiiaudio.c @@ -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; }