Fix crash

Dammit my build process wasn't actually updating the binary I was
testing.
This commit is contained in:
Clownacy 2020-04-19 20:15:20 +01:00
parent cfe523589d
commit 5c575a0be9

View file

@ -81,7 +81,7 @@ static void FrameCallback(void)
AXVoiceOffsets offsets;
AXGetVoiceOffsets(voices[0], &offsets);
unsigned int current_buffer = offsets.currentOffset / (buffer_length / 2);
unsigned int current_buffer = offsets.currentOffset > (buffer_length / 2) ? 1 : 0;
static unsigned int last_buffer = 1;