dummy audio: Patched to compile.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 03 Aug 2016 16:54:10 -0400
changeset 10235 0e83beda6d8b
parent 10234 05e2142bcd69
child 10236 c2730130a448
dummy audio: Patched to compile.
src/audio/dummy/SDL_dummyaudio.c
--- a/src/audio/dummy/SDL_dummyaudio.c	Wed Aug 03 02:18:47 2016 -0400
+++ b/src/audio/dummy/SDL_dummyaudio.c	Wed Aug 03 16:54:10 2016 -0400
@@ -22,6 +22,7 @@
 
 /* Output audio to nowhere... */
 
+#include "SDL_timer.h"
 #include "SDL_audio.h"
 #include "../SDL_audio_c.h"
 #include "SDL_dummyaudio.h"
@@ -36,7 +37,7 @@
 DUMMYAUD_CaptureFromDevice(_THIS, void *buffer, int buflen)
 {
     /* Delay to make this sort of simulate real audio input. */
-    SDL_Delay((device->spec.samples * 1000) / device->spec.freq);
+    SDL_Delay((this->spec.samples * 1000) / this->spec.freq);
 
     /* always return a full buffer of silence. */
     SDL_memset(buffer, this->spec.silence, buflen);