From dec7875a6e23212021e4d9080330a42832dfe02a Mon Sep 17 00:00:00 2001
From: Edward Rudd <urkle@outoforder.cc>
Date: Tue, 15 Jun 2021 01:40:19 +0000
Subject: [PATCH] update SDL soruce to 2.0.14
---
source/src/audio/SDL_audio.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/source/src/audio/SDL_audio.c b/source/src/audio/SDL_audio.c
index 3137493..16d29f9 100644
--- a/source/src/audio/SDL_audio.c
+++ b/source/src/audio/SDL_audio.c
@@ -104,6 +104,9 @@
#if SDL_AUDIO_DRIVER_JACK
&JACK_bootstrap,
#endif
+#if SDL_AUDIO_DRIVER_OS2
+ &OS2AUDIO_bootstrap,
+#endif
#if SDL_AUDIO_DRIVER_DISK
&DISKAUDIO_bootstrap,
#endif
@@ -574,7 +577,7 @@
if (len > 0) { /* fill any remaining space in the stream with silence. */
SDL_assert(SDL_CountDataQueue(device->buffer_queue) == 0);
- SDL_memset(stream, device->spec.silence, len);
+ SDL_memset(stream, device->callbackspec.silence, len);
}
}
@@ -730,7 +733,7 @@
/* !!! FIXME: this should be LockDevice. */
SDL_LockMutex(device->mixer_lock);
if (SDL_AtomicGet(&device->paused)) {
- SDL_memset(data, device->spec.silence, data_len);
+ SDL_memset(data, device->callbackspec.silence, data_len);
} else {
callback(udata, data, data_len);
}
--
Gitblit v1.9.3