Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
3815:3234d6eee011 | 3816:9d070c1a45fa |
---|---|
33 #include "SDL_dummyaudio.h" | 33 #include "SDL_dummyaudio.h" |
34 | 34 |
35 /* The tag name used by DUMMY audio */ | 35 /* The tag name used by DUMMY audio */ |
36 #define DUMMYAUD_DRIVER_NAME "dummy" | 36 #define DUMMYAUD_DRIVER_NAME "dummy" |
37 | 37 |
38 /* Audio driver functions */ | |
39 static int DUMMYAUD_OpenDevice(_THIS, const char *devname, int iscapture); | |
40 | |
41 /* Audio driver bootstrap functions */ | |
42 static int | 38 static int |
43 DUMMYAUD_Available(void) | 39 DUMMYAUD_Available(void) |
44 { | 40 { |
45 return 1; /* always available. */ | 41 return 1; /* always available. */ |
46 } | 42 } |
43 | |
44 static int | |
45 DUMMYAUD_OpenDevice(_THIS, const char *devname, int iscapture) | |
46 { | |
47 return 1; /* always succeeds. */ | |
48 } | |
49 | |
47 | 50 |
48 static int | 51 static int |
49 DUMMYAUD_Init(SDL_AudioDriverImpl *impl) | 52 DUMMYAUD_Init(SDL_AudioDriverImpl *impl) |
50 { | 53 { |
51 /* Set the function pointers */ | 54 /* Set the function pointers */ |
58 AudioBootStrap DUMMYAUD_bootstrap = { | 61 AudioBootStrap DUMMYAUD_bootstrap = { |
59 DUMMYAUD_DRIVER_NAME, "SDL dummy audio driver", | 62 DUMMYAUD_DRIVER_NAME, "SDL dummy audio driver", |
60 DUMMYAUD_Available, DUMMYAUD_Init, 1 | 63 DUMMYAUD_Available, DUMMYAUD_Init, 1 |
61 }; | 64 }; |
62 | 65 |
63 static int | |
64 DUMMYAUD_OpenDevice(_THIS, const char *devname, int iscapture) | |
65 { | |
66 return 1; /* always succeeds. */ | |
67 } | |
68 | |
69 /* vi: set ts=4 sw=4 expandtab: */ | 66 /* vi: set ts=4 sw=4 expandtab: */ |