Removed no-op Deinitialize methods in audio drivers.
This commit is contained in:
parent
b4cf784f88
commit
cd8da3097b
4 changed files with 0 additions and 27 deletions
|
@ -48,12 +48,6 @@
|
||||||
/* #define DEBUG_AUDIO_STREAM */
|
/* #define DEBUG_AUDIO_STREAM */
|
||||||
|
|
||||||
|
|
||||||
static void
|
|
||||||
BSDAUDIO_Deinitialize(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
BSDAUDIO_DetectDevices(int iscapture, SDL_AddAudioDevice addfn)
|
BSDAUDIO_DetectDevices(int iscapture, SDL_AddAudioDevice addfn)
|
||||||
{
|
{
|
||||||
|
@ -361,7 +355,6 @@ BSDAUDIO_Init(SDL_AudioDriverImpl * impl)
|
||||||
impl->WaitDevice = BSDAUDIO_WaitDevice;
|
impl->WaitDevice = BSDAUDIO_WaitDevice;
|
||||||
impl->GetDeviceBuf = BSDAUDIO_GetDeviceBuf;
|
impl->GetDeviceBuf = BSDAUDIO_GetDeviceBuf;
|
||||||
impl->CloseDevice = BSDAUDIO_CloseDevice;
|
impl->CloseDevice = BSDAUDIO_CloseDevice;
|
||||||
impl->Deinitialize = BSDAUDIO_Deinitialize;
|
|
||||||
|
|
||||||
return 1; /* this audio target is available. */
|
return 1; /* this audio target is available. */
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,11 +47,6 @@
|
||||||
#include "../SDL_audiodev_c.h"
|
#include "../SDL_audiodev_c.h"
|
||||||
#include "SDL_dspaudio.h"
|
#include "SDL_dspaudio.h"
|
||||||
|
|
||||||
static void
|
|
||||||
DSP_Deinitialize(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
DSP_DetectDevices(int iscapture)
|
DSP_DetectDevices(int iscapture)
|
||||||
|
@ -308,7 +303,6 @@ DSP_Init(SDL_AudioDriverImpl * impl)
|
||||||
impl->PlayDevice = DSP_PlayDevice;
|
impl->PlayDevice = DSP_PlayDevice;
|
||||||
impl->GetDeviceBuf = DSP_GetDeviceBuf;
|
impl->GetDeviceBuf = DSP_GetDeviceBuf;
|
||||||
impl->CloseDevice = DSP_CloseDevice;
|
impl->CloseDevice = DSP_CloseDevice;
|
||||||
impl->Deinitialize = DSP_Deinitialize;
|
|
||||||
|
|
||||||
return 1; /* this audio target is available. */
|
return 1; /* this audio target is available. */
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,11 +29,6 @@
|
||||||
|
|
||||||
#define DEBUG_COREAUDIO 0
|
#define DEBUG_COREAUDIO 0
|
||||||
|
|
||||||
static void
|
|
||||||
COREAUDIO_Deinitialize(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The CoreAudio callback */
|
/* The CoreAudio callback */
|
||||||
static OSStatus
|
static OSStatus
|
||||||
outputCallback(void *inRefCon,
|
outputCallback(void *inRefCon,
|
||||||
|
@ -320,7 +315,6 @@ COREAUDIO_Init(SDL_AudioDriverImpl * impl)
|
||||||
/* Set the function pointers */
|
/* Set the function pointers */
|
||||||
impl->OpenDevice = COREAUDIO_OpenDevice;
|
impl->OpenDevice = COREAUDIO_OpenDevice;
|
||||||
impl->CloseDevice = COREAUDIO_CloseDevice;
|
impl->CloseDevice = COREAUDIO_CloseDevice;
|
||||||
impl->Deinitialize = COREAUDIO_Deinitialize;
|
|
||||||
impl->ProvidesOwnCallbackThread = 1;
|
impl->ProvidesOwnCallbackThread = 1;
|
||||||
|
|
||||||
/* added for iPhone */
|
/* added for iPhone */
|
||||||
|
|
|
@ -172,13 +172,6 @@ COREAUDIO_DetectDevices(int iscapture, SDL_AddAudioDevice addfn)
|
||||||
build_device_list(iscapture, addToDevList, addfn);
|
build_device_list(iscapture, addToDevList, addfn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
|
||||||
COREAUDIO_Deinitialize(void)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* The CoreAudio callback */
|
/* The CoreAudio callback */
|
||||||
static OSStatus
|
static OSStatus
|
||||||
outputCallback(void *inRefCon,
|
outputCallback(void *inRefCon,
|
||||||
|
@ -508,7 +501,6 @@ COREAUDIO_Init(SDL_AudioDriverImpl * impl)
|
||||||
impl->DetectDevices = COREAUDIO_DetectDevices;
|
impl->DetectDevices = COREAUDIO_DetectDevices;
|
||||||
impl->OpenDevice = COREAUDIO_OpenDevice;
|
impl->OpenDevice = COREAUDIO_OpenDevice;
|
||||||
impl->CloseDevice = COREAUDIO_CloseDevice;
|
impl->CloseDevice = COREAUDIO_CloseDevice;
|
||||||
impl->Deinitialize = COREAUDIO_Deinitialize;
|
|
||||||
impl->ProvidesOwnCallbackThread = 1;
|
impl->ProvidesOwnCallbackThread = 1;
|
||||||
|
|
||||||
return 1; /* this audio target is available. */
|
return 1; /* this audio target is available. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue