From 20cd5e44ce2970eb9385a5b9573bdaa095e510d0 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 3 Aug 2016 16:54:10 -0400 Subject: [PATCH] dummy audio: Patched to compile. --- src/audio/dummy/SDL_dummyaudio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/audio/dummy/SDL_dummyaudio.c b/src/audio/dummy/SDL_dummyaudio.c index 00458d2566411..f100585a49fb5 100644 --- a/src/audio/dummy/SDL_dummyaudio.c +++ b/src/audio/dummy/SDL_dummyaudio.c @@ -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 @@ static int 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);