diff src/audio/SDL_audio.c @ 3795:589bc3d060cd SDL-ryan-multiple-audio-device

More 1.3 audio work...moved dsp and dma drivers over to new model. Untested!
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 04 Oct 2006 06:00:10 +0000
parents 866c310e2cb5
children b19680c84cdf
line wrap: on
line diff
--- a/src/audio/SDL_audio.c	Tue Oct 03 23:45:36 2006 +0000
+++ b/src/audio/SDL_audio.c	Wed Oct 04 06:00:10 2006 +0000
@@ -132,6 +132,16 @@
 }
 
 
+/* stubs for audio drivers that don't need a specific entry point... */
+/* !!! FIXME: fill in more of these. */
+
+static void SDL_DeinitializeAudio_Default(void)
+{
+    /* no-op. */
+}
+
+
+
 /* The general mixing thread function */
 int SDLCALL
 SDL_RunAudio(void *devicep)
@@ -443,6 +453,10 @@
         current_audio.impl.UnlockDevice = SDL_UnlockDevice_Default;
     }
 
+    if (!current_audio.impl.Deinitialize) {
+        current_audio.impl.Deinitialize = SDL_DeinitializeAudio_Default;
+    }
+
     return (0);
 }