mirror of
https://github.com/arnavbhatt288/sdl-2.30.3-kolibri.git
synced 2025-01-06 20:35:54 +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
|
// initialize
|
||||||
_this = global_device;
|
_this = global_device;
|
||||||
callback = _this->spec.callback;
|
|
||||||
|
|
||||||
if (CreateBuffer(private->used_format | PCM_RING, 0, &private->hBuff)) {
|
if (CreateBuffer(private->used_format | PCM_RING, 0, &private->hBuff)) {
|
||||||
private->audio_response = 1;
|
private->audio_response = 1;
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
private->audio_response = 1;
|
private->audio_response = 1;
|
||||||
|
|
||||||
// wait for resume
|
// wait for resume
|
||||||
@ -50,6 +48,7 @@ static void kolibri_audio_callback(void)
|
|||||||
bPaused = 0;
|
bPaused = 0;
|
||||||
private->audio_response = 1;
|
private->audio_response = 1;
|
||||||
PlayBuffer(private->hBuff, 0);
|
PlayBuffer(private->hBuff, 0);
|
||||||
|
callback = _this->callbackspec.callback;
|
||||||
|
|
||||||
// main loop
|
// main loop
|
||||||
while (1) {
|
while (1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user