git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit de10338962d37b5cc69fe5bee8b148f5db476298
parent 43210876beaa355e96fe8a94069d301a4c9a6219
Author: Maximilian Mader <max@bastelstu.be>
Date:   Mon, 18 Jul 2022 22:24:00 +0200

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.

Diffstat:
MSDL/audio/openal.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/SDL/audio/openal.c b/SDL/audio/openal.c @@ -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)

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.