dummy audio: Patched to compile.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 03 Aug 2016 16:54:10 -0400
changeset 102530e83beda6d8b
parent 10252 05e2142bcd69
child 10254 c2730130a448
dummy audio: Patched to compile.
src/audio/dummy/SDL_dummyaudio.c
     1.1 --- a/src/audio/dummy/SDL_dummyaudio.c	Wed Aug 03 02:18:47 2016 -0400
     1.2 +++ b/src/audio/dummy/SDL_dummyaudio.c	Wed Aug 03 16:54:10 2016 -0400
     1.3 @@ -22,6 +22,7 @@
     1.4  
     1.5  /* Output audio to nowhere... */
     1.6  
     1.7 +#include "SDL_timer.h"
     1.8  #include "SDL_audio.h"
     1.9  #include "../SDL_audio_c.h"
    1.10  #include "SDL_dummyaudio.h"
    1.11 @@ -36,7 +37,7 @@
    1.12  DUMMYAUD_CaptureFromDevice(_THIS, void *buffer, int buflen)
    1.13  {
    1.14      /* Delay to make this sort of simulate real audio input. */
    1.15 -    SDL_Delay((device->spec.samples * 1000) / device->spec.freq);
    1.16 +    SDL_Delay((this->spec.samples * 1000) / this->spec.freq);
    1.17  
    1.18      /* always return a full buffer of silence. */
    1.19      SDL_memset(buffer, this->spec.silence, buflen);