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:
parent
50ba63d07a
commit
e071023d05
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user