Removed no-op Deinitialize methods in audio drivers.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 26 Jul 2011 14:20:22 -0700
changeset 5595 2cf94ca4ad24
parent 5594 e741303e08a8
child 5596 d4b2f6543074
Removed no-op Deinitialize methods in audio drivers.
src/audio/bsd/SDL_bsdaudio.c
src/audio/dsp/SDL_dspaudio.c
src/audio/iphoneos/SDL_coreaudio_iphone.c
src/audio/macosx/SDL_coreaudio.c
--- a/src/audio/bsd/SDL_bsdaudio.c	Tue Jul 26 14:18:00 2011 -0700
+++ b/src/audio/bsd/SDL_bsdaudio.c	Tue Jul 26 14:20:22 2011 -0700
@@ -49,12 +49,6 @@
 
 
 static void
-BSDAUDIO_Deinitialize(void)
-{
-}
-
-
-static void
 BSDAUDIO_DetectDevices(int iscapture, SDL_AddAudioDevice addfn)
 {
     SDL_EnumUnixAudioDevices(iscapture, 0, NULL, addfn);
@@ -361,7 +355,6 @@
     impl->WaitDevice = BSDAUDIO_WaitDevice;
     impl->GetDeviceBuf = BSDAUDIO_GetDeviceBuf;
     impl->CloseDevice = BSDAUDIO_CloseDevice;
-    impl->Deinitialize = BSDAUDIO_Deinitialize;
 
     return 1;   /* this audio target is available. */
 }
--- a/src/audio/dsp/SDL_dspaudio.c	Tue Jul 26 14:18:00 2011 -0700
+++ b/src/audio/dsp/SDL_dspaudio.c	Tue Jul 26 14:20:22 2011 -0700
@@ -47,11 +47,6 @@
 #include "../SDL_audiodev_c.h"
 #include "SDL_dspaudio.h"
 
-static void
-DSP_Deinitialize(void)
-{
-}
-
 
 static void
 DSP_DetectDevices(int iscapture)
@@ -308,7 +303,6 @@
     impl->PlayDevice = DSP_PlayDevice;
     impl->GetDeviceBuf = DSP_GetDeviceBuf;
     impl->CloseDevice = DSP_CloseDevice;
-    impl->Deinitialize = DSP_Deinitialize;
 
     return 1;   /* this audio target is available. */
 }
--- a/src/audio/iphoneos/SDL_coreaudio_iphone.c	Tue Jul 26 14:18:00 2011 -0700
+++ b/src/audio/iphoneos/SDL_coreaudio_iphone.c	Tue Jul 26 14:20:22 2011 -0700
@@ -29,11 +29,6 @@
 
 #define DEBUG_COREAUDIO 0
 
-static void
-COREAUDIO_Deinitialize(void)
-{
-}
-
 /* The CoreAudio callback */
 static OSStatus
 outputCallback(void *inRefCon,
@@ -320,7 +315,6 @@
     /* Set the function pointers */
     impl->OpenDevice = COREAUDIO_OpenDevice;
     impl->CloseDevice = COREAUDIO_CloseDevice;
-    impl->Deinitialize = COREAUDIO_Deinitialize;
     impl->ProvidesOwnCallbackThread = 1;
 
     /* added for iPhone */
--- a/src/audio/macosx/SDL_coreaudio.c	Tue Jul 26 14:18:00 2011 -0700
+++ b/src/audio/macosx/SDL_coreaudio.c	Tue Jul 26 14:20:22 2011 -0700
@@ -172,13 +172,6 @@
     build_device_list(iscapture, addToDevList, addfn);
 }
 
-
-static void
-COREAUDIO_Deinitialize(void)
-{
-}
-
-
 /* The CoreAudio callback */
 static OSStatus
 outputCallback(void *inRefCon,
@@ -508,7 +501,6 @@
     impl->DetectDevices = COREAUDIO_DetectDevices;
     impl->OpenDevice = COREAUDIO_OpenDevice;
     impl->CloseDevice = COREAUDIO_CloseDevice;
-    impl->Deinitialize = COREAUDIO_Deinitialize;
     impl->ProvidesOwnCallbackThread = 1;
 
     return 1;   /* this audio target is available. */