2
0
mirror of https://github.com/arnavbhatt288/sdl-2.30.3-kolibri.git synced 2024-11-05 23:30:27 +01:00

fix audio queuing

Signed-off-by: Arnav Bhatt <arnav@ghativega.in>
This commit is contained in:
Arnav Bhatt 2024-08-21 03:38:36 +05:30
parent 50ba63d07a
commit e071023d05
Signed by untrusted user: arnavbhatt288
GPG Key ID: 2F49C4D36103865D

View File

@ -33,13 +33,11 @@ static void kolibri_audio_callback(void)
// initialize
_this = global_device;
callback = _this->spec.callback;
if (CreateBuffer(private->used_format | PCM_RING, 0, &private->hBuff)) {
private->audio_response = 1;
exit(0);
}
private->audio_response = 1;
// wait for resume
@ -50,6 +48,7 @@ static void kolibri_audio_callback(void)
bPaused = 0;
private->audio_response = 1;
PlayBuffer(private->hBuff, 0);
callback = _this->callbackspec.callback;
// main loop
while (1) {