Fix incorrect condition in FIFO sampling

This commit is contained in:
Jeffrey Pfau 2013-10-03 01:23:16 -07:00
parent da38027654
commit 0dd69e8273
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ void GBAAudioSampleFIFO(struct GBAAudio* audio, int fifoId) {
GBALog(audio->p, GBA_LOG_ERROR, "Bad FIFO write to address 0x%03x", fifoId);
return;
}
if (CircleBufferSize(&channel->fifo) < 4 * sizeof(int32_t)) {
if (CircleBufferSize(&channel->fifo) <= 4 * sizeof(int32_t)) {
struct GBADMA* dma = &audio->p->memory.dma[channel->dmaSource];
dma->nextCount = 4;
GBAMemoryServiceDMA(&audio->p->memory, channel->dmaSource, dma);