src/audio/dummy/SDL_dummyaudio.c
branchSDL-ryan-multiple-audio-device
changeset 3846 66fb40445587
parent 3816 9d070c1a45fa
     1.1 --- a/src/audio/dummy/SDL_dummyaudio.c	Tue Oct 17 08:04:51 2006 +0000
     1.2 +++ b/src/audio/dummy/SDL_dummyaudio.c	Tue Oct 17 09:09:21 2006 +0000
     1.3 @@ -25,42 +25,27 @@
     1.4  
     1.5  /* Output audio to nowhere... */
     1.6  
     1.7 -#include "SDL_rwops.h"
     1.8 -#include "SDL_timer.h"
     1.9  #include "SDL_audio.h"
    1.10 -#include "../SDL_audiomem.h"
    1.11  #include "../SDL_audio_c.h"
    1.12  #include "SDL_dummyaudio.h"
    1.13  
    1.14 -/* The tag name used by DUMMY audio */
    1.15 -#define DUMMYAUD_DRIVER_NAME         "dummy"
    1.16 -
    1.17 -static int
    1.18 -DUMMYAUD_Available(void)
    1.19 -{
    1.20 -    return 1;  /* always available. */
    1.21 -}
    1.22 -
    1.23  static int
    1.24  DUMMYAUD_OpenDevice(_THIS, const char *devname, int iscapture)
    1.25  {
    1.26      return 1;   /* always succeeds. */
    1.27  }
    1.28  
    1.29 -
    1.30  static int
    1.31  DUMMYAUD_Init(SDL_AudioDriverImpl *impl)
    1.32  {
    1.33      /* Set the function pointers */
    1.34      impl->OpenDevice = DUMMYAUD_OpenDevice;
    1.35      impl->OnlyHasDefaultOutputDevice = 1;
    1.36 -
    1.37      return 1;
    1.38  }
    1.39  
    1.40  AudioBootStrap DUMMYAUD_bootstrap = {
    1.41 -    DUMMYAUD_DRIVER_NAME, "SDL dummy audio driver",
    1.42 -    DUMMYAUD_Available, DUMMYAUD_Init, 1
    1.43 +    "dummy", "SDL dummy audio driver", DUMMYAUD_Init, 1
    1.44  };
    1.45  
    1.46  /* vi: set ts=4 sw=4 expandtab: */