mirror of https://github.com/encounter/SDL.git
dummy audio: Patched to compile.
This commit is contained in:
parent
17246ba95e
commit
20cd5e44ce
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue