Commit 0f4aba7bcdc6aa8671c1f93700266b0e8907cc70

Ryan C. Gordon 2021-04-06T18:34:53

audio: Fixed assertion failure if trying to use dummy backend.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/audio/dummy/SDL_dummyaudio.c b/src/audio/dummy/SDL_dummyaudio.c
index 6d6d61c..acd54b8 100644
--- a/src/audio/dummy/SDL_dummyaudio.c
+++ b/src/audio/dummy/SDL_dummyaudio.c
@@ -30,6 +30,7 @@
 static int
 DUMMYAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
 {
+    _this->hidden = (void *) 0x1;  /* just something non-NULL */
     return 0;                   /* always succeeds. */
 }