3DS: Decrease audio latency
Jeffrey Pfau jeffrey@endrift.com
Wed, 02 Sep 2015 22:59:02 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/platform/3ds/main.c
→
src/platform/3ds/main.c
@@ -198,7 +198,7 @@ #endif
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) {