Mercurial > sdl-ios-xcode
diff src/audio/dummy/SDL_dummyaudio.c @ 3816:9d070c1a45fa SDL-ryan-multiple-audio-device
Moved AudioBootstrap section in converted drivers to bottom of source, so I
could delete the predeclarations (one more thing to forget to update when
changing the API, otherwise). There're a few other cleanups that snuck into
this commit, too.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 06 Oct 2006 04:46:58 +0000 |
parents | d980c4dcad0f |
children | 66fb40445587 |
line wrap: on
line diff
--- a/src/audio/dummy/SDL_dummyaudio.c Fri Oct 06 04:16:11 2006 +0000 +++ b/src/audio/dummy/SDL_dummyaudio.c Fri Oct 06 04:46:58 2006 +0000 @@ -35,10 +35,6 @@ /* The tag name used by DUMMY audio */ #define DUMMYAUD_DRIVER_NAME "dummy" -/* Audio driver functions */ -static int DUMMYAUD_OpenDevice(_THIS, const char *devname, int iscapture); - -/* Audio driver bootstrap functions */ static int DUMMYAUD_Available(void) { @@ -46,6 +42,13 @@ } static int +DUMMYAUD_OpenDevice(_THIS, const char *devname, int iscapture) +{ + return 1; /* always succeeds. */ +} + + +static int DUMMYAUD_Init(SDL_AudioDriverImpl *impl) { /* Set the function pointers */ @@ -60,10 +63,4 @@ DUMMYAUD_Available, DUMMYAUD_Init, 1 }; -static int -DUMMYAUD_OpenDevice(_THIS, const char *devname, int iscapture) -{ - return 1; /* always succeeds. */ -} - /* vi: set ts=4 sw=4 expandtab: */