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
b4cf784f
Commit
b4cf784f
authored
Jul 26, 2011
by
Ryan C. Gordon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed needless macros in various audio targets.
parent
8e6153c3
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
12 additions
and
54 deletions
+12
-54
SDL_alsa_audio.c
src/audio/alsa/SDL_alsa_audio.c
+1
-4
SDL_artsaudio.c
src/audio/arts/SDL_artsaudio.c
+1
-4
SDL_bsdaudio.c
src/audio/bsd/SDL_bsdaudio.c
+1
-10
SDL_diskaudio.c
src/audio/disk/SDL_diskaudio.c
+1
-4
SDL_dspaudio.c
src/audio/dsp/SDL_dspaudio.c
+1
-4
SDL_esdaudio.c
src/audio/esd/SDL_esdaudio.c
+1
-4
SDL_fsaudio.c
src/audio/fusionsound/SDL_fsaudio.c
+1
-3
SDL_nasaudio.c
src/audio/nas/SDL_nasaudio.c
+1
-4
SDL_paudio.c
src/audio/paudio/SDL_paudio.c
+1
-4
SDL_pulseaudio.c
src/audio/pulseaudio/SDL_pulseaudio.c
+1
-4
SDL_qsa_audio.c
src/audio/qsa/SDL_qsa_audio.c
+1
-4
SDL_umsaudio.c
src/audio/ums/SDL_umsaudio.c
+1
-5
No files found.
src/audio/alsa/SDL_alsa_audio.c
View file @
b4cf784f
...
@@ -37,9 +37,6 @@
...
@@ -37,9 +37,6 @@
#include "SDL_loadso.h"
#include "SDL_loadso.h"
#endif
#endif
/* The tag name used by ALSA audio */
#define DRIVER_NAME "alsa"
static
int
(
*
ALSA_snd_pcm_open
)
static
int
(
*
ALSA_snd_pcm_open
)
(
snd_pcm_t
**
,
const
char
*
,
snd_pcm_stream_t
,
int
);
(
snd_pcm_t
**
,
const
char
*
,
snd_pcm_stream_t
,
int
);
static
int
(
*
ALSA_snd_pcm_close
)
(
snd_pcm_t
*
pcm
);
static
int
(
*
ALSA_snd_pcm_close
)
(
snd_pcm_t
*
pcm
);
...
@@ -684,7 +681,7 @@ ALSA_Init(SDL_AudioDriverImpl * impl)
...
@@ -684,7 +681,7 @@ ALSA_Init(SDL_AudioDriverImpl * impl)
AudioBootStrap
ALSA_bootstrap
=
{
AudioBootStrap
ALSA_bootstrap
=
{
DRIVER_NAME
,
"ALSA PCM audio"
,
ALSA_Init
,
0
"alsa"
,
"ALSA PCM audio"
,
ALSA_Init
,
0
};
};
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/audio/arts/SDL_artsaudio.c
View file @
b4cf784f
...
@@ -41,9 +41,6 @@
...
@@ -41,9 +41,6 @@
#define SDL_NAME(X) X
#define SDL_NAME(X) X
#endif
#endif
/* The tag name used by artsc audio */
#define ARTS_DRIVER_NAME "arts"
#ifdef SDL_AUDIO_DRIVER_ARTS_DYNAMIC
#ifdef SDL_AUDIO_DRIVER_ARTS_DYNAMIC
static
const
char
*
arts_library
=
SDL_AUDIO_DRIVER_ARTS_DYNAMIC
;
static
const
char
*
arts_library
=
SDL_AUDIO_DRIVER_ARTS_DYNAMIC
;
...
@@ -372,7 +369,7 @@ ARTS_Init(SDL_AudioDriverImpl * impl)
...
@@ -372,7 +369,7 @@ ARTS_Init(SDL_AudioDriverImpl * impl)
AudioBootStrap
ARTS_bootstrap
=
{
AudioBootStrap
ARTS_bootstrap
=
{
ARTS_DRIVER_NAME
,
"Analog RealTime Synthesizer"
,
ARTS_Init
,
0
"arts"
,
"Analog RealTime Synthesizer"
,
ARTS_Init
,
0
};
};
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/audio/bsd/SDL_bsdaudio.c
View file @
b4cf784f
...
@@ -41,15 +41,6 @@
...
@@ -41,15 +41,6 @@
#include "../SDL_audiodev_c.h"
#include "../SDL_audiodev_c.h"
#include "SDL_bsdaudio.h"
#include "SDL_bsdaudio.h"
/* The tag name used by NetBSD/OpenBSD audio */
#ifdef __NetBSD__
#define BSD_AUDIO_DRIVER_NAME "netbsd"
#define BSD_AUDIO_DRIVER_DESC "Native NetBSD audio"
#else
#define BSD_AUDIO_DRIVER_NAME "openbsd"
#define BSD_AUDIO_DRIVER_DESC "Native OpenBSD audio"
#endif
/* Use timer for synchronization */
/* Use timer for synchronization */
/* #define USE_TIMER_SYNC */
/* #define USE_TIMER_SYNC */
...
@@ -377,7 +368,7 @@ BSDAUDIO_Init(SDL_AudioDriverImpl * impl)
...
@@ -377,7 +368,7 @@ BSDAUDIO_Init(SDL_AudioDriverImpl * impl)
AudioBootStrap
BSD_AUDIO_bootstrap
=
{
AudioBootStrap
BSD_AUDIO_bootstrap
=
{
BSD_AUDIO_DRIVER_NAME
,
BSD_AUDIO_DRIVER_DESC
,
BSDAUDIO_Init
,
0
"bsd"
,
"BSD audio"
,
BSDAUDIO_Init
,
0
};
};
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/audio/disk/SDL_diskaudio.c
View file @
b4cf784f
...
@@ -33,9 +33,6 @@
...
@@ -33,9 +33,6 @@
#include "../SDL_audio_c.h"
#include "../SDL_audio_c.h"
#include "SDL_diskaudio.h"
#include "SDL_diskaudio.h"
/* The tag name used by DISK audio */
#define DISKAUD_DRIVER_NAME "disk"
/* environment variables and defaults. */
/* environment variables and defaults. */
#define DISKENVR_OUTFILE "SDL_DISKAUDIOFILE"
#define DISKENVR_OUTFILE "SDL_DISKAUDIOFILE"
#define DISKDEFAULT_OUTFILE "sdlaudio.raw"
#define DISKDEFAULT_OUTFILE "sdlaudio.raw"
...
@@ -159,7 +156,7 @@ DISKAUD_Init(SDL_AudioDriverImpl * impl)
...
@@ -159,7 +156,7 @@ DISKAUD_Init(SDL_AudioDriverImpl * impl)
}
}
AudioBootStrap
DISKAUD_bootstrap
=
{
AudioBootStrap
DISKAUD_bootstrap
=
{
DISKAUD_DRIVER_NAME
,
"direct-to-disk audio"
,
DISKAUD_Init
,
1
"disk"
,
"direct-to-disk audio"
,
DISKAUD_Init
,
1
};
};
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/audio/dsp/SDL_dspaudio.c
View file @
b4cf784f
...
@@ -47,9 +47,6 @@
...
@@ -47,9 +47,6 @@
#include "../SDL_audiodev_c.h"
#include "../SDL_audiodev_c.h"
#include "SDL_dspaudio.h"
#include "SDL_dspaudio.h"
/* The tag name used by DSP audio */
#define DSP_DRIVER_NAME "dsp"
static
void
static
void
DSP_Deinitialize
(
void
)
DSP_Deinitialize
(
void
)
{
{
...
@@ -318,7 +315,7 @@ DSP_Init(SDL_AudioDriverImpl * impl)
...
@@ -318,7 +315,7 @@ DSP_Init(SDL_AudioDriverImpl * impl)
AudioBootStrap
DSP_bootstrap
=
{
AudioBootStrap
DSP_bootstrap
=
{
DSP_DRIVER_NAME
,
"OSS /dev/dsp standard audio"
,
DSP_Init
,
0
"dsp"
,
"OSS /dev/dsp standard audio"
,
DSP_Init
,
0
};
};
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/audio/esd/SDL_esdaudio.c
View file @
b4cf784f
...
@@ -41,9 +41,6 @@
...
@@ -41,9 +41,6 @@
#define SDL_NAME(X) X
#define SDL_NAME(X) X
#endif
#endif
/* The tag name used by ESD audio */
#define ESD_DRIVER_NAME "esd"
#ifdef SDL_AUDIO_DRIVER_ESD_DYNAMIC
#ifdef SDL_AUDIO_DRIVER_ESD_DYNAMIC
static
const
char
*
esd_library
=
SDL_AUDIO_DRIVER_ESD_DYNAMIC
;
static
const
char
*
esd_library
=
SDL_AUDIO_DRIVER_ESD_DYNAMIC
;
...
@@ -345,7 +342,7 @@ ESD_Init(SDL_AudioDriverImpl * impl)
...
@@ -345,7 +342,7 @@ ESD_Init(SDL_AudioDriverImpl * impl)
AudioBootStrap
ESD_bootstrap
=
{
AudioBootStrap
ESD_bootstrap
=
{
ESD_DRIVER_NAME
,
"Enlightened Sound Daemon"
,
ESD_Init
,
0
"esd"
,
"Enlightened Sound Daemon"
,
ESD_Init
,
0
};
};
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/audio/fusionsound/SDL_fsaudio.c
View file @
b4cf784f
...
@@ -48,8 +48,6 @@
...
@@ -48,8 +48,6 @@
typedef
DFBResult
DirectResult
;
typedef
DFBResult
DirectResult
;
#endif
#endif
/* The tag name used by fusionsoundc audio */
#define SDL_FS_DRIVER_NAME "fusionsound"
/* Buffers to use - more than 2 gives a lot of latency */
/* Buffers to use - more than 2 gives a lot of latency */
#define FUSION_BUFFERS (2)
#define FUSION_BUFFERS (2)
...
@@ -344,7 +342,7 @@ SDL_FS_Init(SDL_AudioDriverImpl * impl)
...
@@ -344,7 +342,7 @@ SDL_FS_Init(SDL_AudioDriverImpl * impl)
AudioBootStrap
FUSIONSOUND_bootstrap
=
{
AudioBootStrap
FUSIONSOUND_bootstrap
=
{
SDL_FS_DRIVER_NAME
,
"FusionSound"
,
SDL_FS_Init
,
0
"fusionsound"
,
"FusionSound"
,
SDL_FS_Init
,
0
};
};
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/audio/nas/SDL_nasaudio.c
View file @
b4cf784f
...
@@ -32,9 +32,6 @@
...
@@ -32,9 +32,6 @@
#include "../SDL_audio_c.h"
#include "../SDL_audio_c.h"
#include "SDL_nasaudio.h"
#include "SDL_nasaudio.h"
/* The tag name used by nas audio */
#define NAS_DRIVER_NAME "nas"
static
struct
SDL_PrivateAudioData
*
this2
=
NULL
;
static
struct
SDL_PrivateAudioData
*
this2
=
NULL
;
...
@@ -397,7 +394,7 @@ NAS_Init(SDL_AudioDriverImpl * impl)
...
@@ -397,7 +394,7 @@ NAS_Init(SDL_AudioDriverImpl * impl)
}
}
AudioBootStrap
NAS_bootstrap
=
{
AudioBootStrap
NAS_bootstrap
=
{
NAS_DRIVER_NAME
,
"Network Audio System"
,
NAS_Init
,
0
"nas"
,
"Network Audio System"
,
NAS_Init
,
0
};
};
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/audio/paudio/SDL_paudio.c
View file @
b4cf784f
...
@@ -45,9 +45,6 @@
...
@@ -45,9 +45,6 @@
#undef BIG_ENDIAN
#undef BIG_ENDIAN
#include <sys/audio.h>
#include <sys/audio.h>
/* The tag name used by paud audio */
#define PAUDIO_DRIVER_NAME "paud"
/* Open the audio device for playback, and don't block if busy */
/* Open the audio device for playback, and don't block if busy */
/* #define OPEN_FLAGS (O_WRONLY|O_NONBLOCK) */
/* #define OPEN_FLAGS (O_WRONLY|O_NONBLOCK) */
#define OPEN_FLAGS O_WRONLY
#define OPEN_FLAGS O_WRONLY
...
@@ -545,7 +542,7 @@ PAUDIO_Init(SDL_AudioDriverImpl * impl)
...
@@ -545,7 +542,7 @@ PAUDIO_Init(SDL_AudioDriverImpl * impl)
}
}
AudioBootStrap
PAUDIO_bootstrap
=
{
AudioBootStrap
PAUDIO_bootstrap
=
{
PAUDIO_DRIVER_NAME
,
"AIX Paudio"
,
PAUDIO_Init
,
0
"paud"
,
"AIX Paudio"
,
PAUDIO_Init
,
0
};
};
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/audio/pulseaudio/SDL_pulseaudio.c
View file @
b4cf784f
...
@@ -47,9 +47,6 @@
...
@@ -47,9 +47,6 @@
#include "SDL_pulseaudio.h"
#include "SDL_pulseaudio.h"
#include "SDL_loadso.h"
#include "SDL_loadso.h"
/* The tag name used by pulse audio */
#define PULSEAUDIO_DRIVER_NAME "pulseaudio"
#if (PA_API_VERSION < 12)
#if (PA_API_VERSION < 12)
/** Return non-zero if the passed state is one of the connected states */
/** Return non-zero if the passed state is one of the connected states */
static
inline
int
PA_CONTEXT_IS_GOOD
(
pa_context_state_t
x
)
{
static
inline
int
PA_CONTEXT_IS_GOOD
(
pa_context_state_t
x
)
{
...
@@ -502,7 +499,7 @@ PULSEAUDIO_Init(SDL_AudioDriverImpl * impl)
...
@@ -502,7 +499,7 @@ PULSEAUDIO_Init(SDL_AudioDriverImpl * impl)
AudioBootStrap
PULSEAUDIO_bootstrap
=
{
AudioBootStrap
PULSEAUDIO_bootstrap
=
{
PULSEAUDIO_DRIVER_NAME
,
"PulseAudio"
,
PULSEAUDIO_Init
,
0
"pulseaudio"
,
"PulseAudio"
,
PULSEAUDIO_Init
,
0
};
};
#endif
/* SDL_AUDIO_DRIVER_PULSEAUDIO */
#endif
/* SDL_AUDIO_DRIVER_PULSEAUDIO */
...
...
src/audio/qsa/SDL_qsa_audio.c
View file @
b4cf784f
...
@@ -38,9 +38,6 @@
...
@@ -38,9 +38,6 @@
#include "../SDL_audio_c.h"
#include "../SDL_audio_c.h"
#include "SDL_qsa_audio.h"
#include "SDL_qsa_audio.h"
/* The tag name used by QSA audio framework */
#define DRIVER_NAME "qsa"
/* default channel communication parameters */
/* default channel communication parameters */
#define DEFAULT_CPARAMS_RATE 44100
#define DEFAULT_CPARAMS_RATE 44100
#define DEFAULT_CPARAMS_VOICES 1
#define DEFAULT_CPARAMS_VOICES 1
...
@@ -863,7 +860,7 @@ QSA_Init(SDL_AudioDriverImpl * impl)
...
@@ -863,7 +860,7 @@ QSA_Init(SDL_AudioDriverImpl * impl)
}
}
AudioBootStrap
QSAAUDIO_bootstrap
=
{
AudioBootStrap
QSAAUDIO_bootstrap
=
{
DRIVER_NAME
,
"QNX QSA Audio"
,
QSA_Init
,
0
"qsa"
,
"QNX QSA Audio"
,
QSA_Init
,
0
};
};
/* vi: set ts=4 sw=4 expandtab: */
/* vi: set ts=4 sw=4 expandtab: */
src/audio/ums/SDL_umsaudio.c
View file @
b4cf784f
...
@@ -40,9 +40,6 @@
...
@@ -40,9 +40,6 @@
#include "../SDL_audio_c.h"
#include "../SDL_audio_c.h"
#include "SDL_umsaudio.h"
#include "SDL_umsaudio.h"
/* The tag name used by UMS audio */
#define UMS_DRIVER_NAME "ums"
#define DEBUG_AUDIO 1
#define DEBUG_AUDIO 1
/* Audio driver functions */
/* Audio driver functions */
...
@@ -152,8 +149,7 @@ Audio_CreateDevice(int devindex)
...
@@ -152,8 +149,7 @@ Audio_CreateDevice(int devindex)
}
}
AudioBootStrap
UMS_bootstrap
=
{
AudioBootStrap
UMS_bootstrap
=
{
UMS_DRIVER_NAME
,
"AIX UMS audio"
,
"ums"
,
"AIX UMS audio"
,
Audio_Available
,
Audio_CreateDevice
,
0
Audio_Available
,
Audio_CreateDevice
,
0
};
};
static
Uint8
*
static
Uint8
*
...
...
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