Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
cd8da309
Commit
cd8da309
authored
Jul 26, 2011
by
Ryan C. Gordon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed no-op Deinitialize methods in audio drivers.
parent
b4cf784f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
27 deletions
+0
-27
SDL_bsdaudio.c
src/audio/bsd/SDL_bsdaudio.c
+0
-7
SDL_dspaudio.c
src/audio/dsp/SDL_dspaudio.c
+0
-6
SDL_coreaudio_iphone.c
src/audio/iphoneos/SDL_coreaudio_iphone.c
+0
-6
SDL_coreaudio.c
src/audio/macosx/SDL_coreaudio.c
+0
-8
No files found.
src/audio/bsd/SDL_bsdaudio.c
View file @
cd8da309
...
...
@@ -48,12 +48,6 @@
/* #define DEBUG_AUDIO_STREAM */
static
void
BSDAUDIO_Deinitialize
(
void
)
{
}
static
void
BSDAUDIO_DetectDevices
(
int
iscapture
,
SDL_AddAudioDevice
addfn
)
{
...
...
@@ -361,7 +355,6 @@ BSDAUDIO_Init(SDL_AudioDriverImpl * impl)
impl
->
WaitDevice
=
BSDAUDIO_WaitDevice
;
impl
->
GetDeviceBuf
=
BSDAUDIO_GetDeviceBuf
;
impl
->
CloseDevice
=
BSDAUDIO_CloseDevice
;
impl
->
Deinitialize
=
BSDAUDIO_Deinitialize
;
return
1
;
/* this audio target is available. */
}
...
...
src/audio/dsp/SDL_dspaudio.c
View file @
cd8da309
...
...
@@ -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 @@ DSP_Init(SDL_AudioDriverImpl * impl)
impl
->
PlayDevice
=
DSP_PlayDevice
;
impl
->
GetDeviceBuf
=
DSP_GetDeviceBuf
;
impl
->
CloseDevice
=
DSP_CloseDevice
;
impl
->
Deinitialize
=
DSP_Deinitialize
;
return
1
;
/* this audio target is available. */
}
...
...
src/audio/iphoneos/SDL_coreaudio_iphone.c
View file @
cd8da309
...
...
@@ -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 @@ COREAUDIO_Init(SDL_AudioDriverImpl * impl)
/* Set the function pointers */
impl
->
OpenDevice
=
COREAUDIO_OpenDevice
;
impl
->
CloseDevice
=
COREAUDIO_CloseDevice
;
impl
->
Deinitialize
=
COREAUDIO_Deinitialize
;
impl
->
ProvidesOwnCallbackThread
=
1
;
/* added for iPhone */
...
...
src/audio/macosx/SDL_coreaudio.c
View file @
cd8da309
...
...
@@ -172,13 +172,6 @@ COREAUDIO_DetectDevices(int iscapture, SDL_AddAudioDevice addfn)
build_device_list
(
iscapture
,
addToDevList
,
addfn
);
}
static
void
COREAUDIO_Deinitialize
(
void
)
{
}
/* The CoreAudio callback */
static
OSStatus
outputCallback
(
void
*
inRefCon
,
...
...
@@ -508,7 +501,6 @@ COREAUDIO_Init(SDL_AudioDriverImpl * impl)
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. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment