comparison src/audio/SDL_audio.c @ 2735:204be4fc2726

Final merge of Google Summer of Code 2008 work... Port SDL 1.3 to the Nintendo DS by Darren Alton, mentored by Sam Lantinga
author Sam Lantinga <slouken@libsdl.org>
date Wed, 27 Aug 2008 15:10:03 +0000
parents 2768bd7281e0
children f55c87ae336b
comparison
equal deleted inserted replaced
2734:dd25eabe441c 2735:204be4fc2726
68 extern AudioBootStrap DISKAUD_bootstrap; 68 extern AudioBootStrap DISKAUD_bootstrap;
69 extern AudioBootStrap DUMMYAUD_bootstrap; 69 extern AudioBootStrap DUMMYAUD_bootstrap;
70 extern AudioBootStrap DCAUD_bootstrap; 70 extern AudioBootStrap DCAUD_bootstrap;
71 extern AudioBootStrap MMEAUDIO_bootstrap; 71 extern AudioBootStrap MMEAUDIO_bootstrap;
72 extern AudioBootStrap DART_bootstrap; 72 extern AudioBootStrap DART_bootstrap;
73 extern AudioBootStrap NDSAUD_bootstrap;
73 74
74 75
75 /* Available audio drivers */ 76 /* Available audio drivers */
76 static AudioBootStrap *bootstrap[] = { 77 static AudioBootStrap *bootstrap[] = {
77 #if SDL_AUDIO_DRIVER_BSD 78 #if SDL_AUDIO_DRIVER_BSD
143 &MMEAUDIO_bootstrap, 144 &MMEAUDIO_bootstrap,
144 #endif 145 #endif
145 #if SDL_AUDIO_DRIVER_DART 146 #if SDL_AUDIO_DRIVER_DART
146 &DART_bootstrap, 147 &DART_bootstrap,
147 #endif 148 #endif
149 #if SDL_AUDIO_DRIVER_NDS
150 &NDSAUD_bootstrap,
151 #endif
148 NULL 152 NULL
149 }; 153 };
150 154
151 static SDL_AudioDevice * 155 static SDL_AudioDevice *
152 get_audio_device(SDL_AudioDeviceID id) 156 get_audio_device(SDL_AudioDeviceID id)
165 static int 169 static int
166 SDL_AudioDetectDevices_Default(int iscapture) 170 SDL_AudioDetectDevices_Default(int iscapture)
167 { 171 {
168 return -1; 172 return -1;
169 } 173 }
174
170 static void 175 static void
171 SDL_AudioThreadInit_Default(_THIS) 176 SDL_AudioThreadInit_Default(_THIS)
172 { /* no-op. */ 177 { /* no-op. */
173 } 178 }
179
174 static void 180 static void
175 SDL_AudioWaitDevice_Default(_THIS) 181 SDL_AudioWaitDevice_Default(_THIS)
176 { /* no-op. */ 182 { /* no-op. */
177 } 183 }
184
178 static void 185 static void
179 SDL_AudioPlayDevice_Default(_THIS) 186 SDL_AudioPlayDevice_Default(_THIS)
180 { /* no-op. */ 187 { /* no-op. */
181 } 188 }
189
182 static Uint8 * 190 static Uint8 *
183 SDL_AudioGetDeviceBuf_Default(_THIS) 191 SDL_AudioGetDeviceBuf_Default(_THIS)
184 { 192 {
185 return NULL; 193 return NULL;
186 } 194 }
195
187 static void 196 static void
188 SDL_AudioWaitDone_Default(_THIS) 197 SDL_AudioWaitDone_Default(_THIS)
189 { /* no-op. */ 198 { /* no-op. */
190 } 199 }
200
191 static void 201 static void
192 SDL_AudioCloseDevice_Default(_THIS) 202 SDL_AudioCloseDevice_Default(_THIS)
193 { /* no-op. */ 203 { /* no-op. */
194 } 204 }
205
195 static void 206 static void
196 SDL_AudioDeinitialize_Default(void) 207 SDL_AudioDeinitialize_Default(void)
197 { /* no-op. */ 208 { /* no-op. */
198 } 209 }
199 210