all repos — mgba @ 1df666e91d30b82aa5d4273b523264585057a6a3

mGBA Game Boy Advance Emulator

3DS: Decrease audio latency
Jeffrey Pfau jeffrey@endrift.com
Wed, 02 Sep 2015 22:59:02 -0700
commit

1df666e91d30b82aa5d4273b523264585057a6a3

parent

1851e0da46a1c6b5d12c04a077719be0ae2a427a

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/3ds/main.csrc/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) {