Change `_audio_get_queue_length()` accoring to a856566b

This also reduces the internal audio buffer size down to 5 ms,
similar to the SDL backend at 96 kHz.
This commit is contained in:
Maximilian Mader 2022-07-18 22:24:00 +02:00
parent 43210876be
commit de10338962
No known key found for this signature in database
GPG Key ID: F71D56A3151C4FB3
1 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@
#include <stdlib.h>
#include <string.h>
#define BUFFER_LEN_MS 32
#define BUFFER_LEN_MS 5
static ALCdevice *al_device = NULL;
static ALCcontext *al_context = NULL;
@ -173,7 +173,7 @@ static size_t _audio_get_queue_length(void)
processed = 0;
}
return (buffers - processed) * buffer_size * sizeof(GB_sample_t);
return (buffers - processed) * buffer_size;
}
static void _audio_queue_sample(GB_sample_t *sample)