3DS: Decrease audio latency

This commit is contained in:
Jeffrey Pfau 2015-09-02 22:59:02 -07:00
parent 1851e0da46
commit 1df666e91d
1 changed files with 1 additions and 1 deletions

View File

@ -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) {