From 1df666e91d30b82aa5d4273b523264585057a6a3 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 2 Sep 2015 22:59:02 -0700 Subject: [PATCH] 3DS: Decrease audio latency --- src/platform/3ds/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/3ds/main.c b/src/platform/3ds/main.c index 756d9fc4a..eb7ce6572 100644 --- a/src/platform/3ds/main.c +++ b/src/platform/3ds/main.c @@ -198,7 +198,7 @@ static void _postAudioBuffer(struct GBAAVStream* stream, struct GBAAudio* audio) GSPGPU_FlushDataCache(0, (void*) &audioLeft[audioPos], AUDIO_SAMPLES * sizeof(int16_t)); GSPGPU_FlushDataCache(0, (void*) &audioRight[audioPos], AUDIO_SAMPLES * sizeof(int16_t)); audioPos = (audioPos + AUDIO_SAMPLES) % AUDIO_SAMPLE_BUFFER; - if (audioPos == AUDIO_SAMPLE_BUFFER / 2) { + if (audioPos == AUDIO_SAMPLE_BUFFER / 8) { u8 playing = 0; csndIsPlaying(0x8, &playing); if (!playing) {