aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-24 19:29:01 -0800
committerChris Robinson <[email protected]>2018-12-24 19:29:01 -0800
commitfbae41020d8968d0e65af08584df4736b5ed7239 (patch)
treeb2bb3297e5e5b4cf348e4e9379dfa4366dd8aa2d /Alc/backends
parent194e7ff815d744830c8aaedfb0d32ed3c3d01645 (diff)
Remove extraneous typedef, struct, and enum keywords
Diffstat (limited to 'Alc/backends')
-rw-r--r--Alc/backends/alsa.cpp6
-rw-r--r--Alc/backends/alsa.h2
-rw-r--r--Alc/backends/base.h6
-rw-r--r--Alc/backends/coreaudio.cpp2
-rw-r--r--Alc/backends/coreaudio.h2
-rw-r--r--Alc/backends/dsound.cpp4
-rw-r--r--Alc/backends/dsound.h2
-rw-r--r--Alc/backends/jack.cpp2
-rw-r--r--Alc/backends/jack.h2
-rw-r--r--Alc/backends/loopback.cpp2
-rw-r--r--Alc/backends/loopback.h2
-rw-r--r--Alc/backends/null.cpp2
-rw-r--r--Alc/backends/null.h2
-rw-r--r--Alc/backends/opensl.cpp6
-rw-r--r--Alc/backends/opensl.h2
-rw-r--r--Alc/backends/oss.cpp6
-rw-r--r--Alc/backends/oss.h2
-rw-r--r--Alc/backends/portaudio.cpp2
-rw-r--r--Alc/backends/portaudio.h2
-rw-r--r--Alc/backends/pulseaudio.cpp2
-rw-r--r--Alc/backends/pulseaudio.h2
-rw-r--r--Alc/backends/qsa.cpp6
-rw-r--r--Alc/backends/qsa.h2
-rw-r--r--Alc/backends/sdl2.cpp6
-rw-r--r--Alc/backends/sdl2.h2
-rw-r--r--Alc/backends/sndio.cpp10
-rw-r--r--Alc/backends/sndio.h2
-rw-r--r--Alc/backends/solaris.cpp2
-rw-r--r--Alc/backends/solaris.h2
-rw-r--r--Alc/backends/wasapi.cpp4
-rw-r--r--Alc/backends/wasapi.h2
-rw-r--r--Alc/backends/wave.cpp2
-rw-r--r--Alc/backends/wave.h2
-rw-r--r--Alc/backends/winmm.cpp2
-rw-r--r--Alc/backends/winmm.h2
35 files changed, 53 insertions, 53 deletions
diff --git a/Alc/backends/alsa.cpp b/Alc/backends/alsa.cpp
index 228cafe0..cf3f7fff 100644
--- a/Alc/backends/alsa.cpp
+++ b/Alc/backends/alsa.cpp
@@ -742,7 +742,7 @@ ALCboolean ALCplaybackAlsa_reset(ALCplaybackAlsa *self)
{
static const struct {
snd_pcm_format_t format;
- enum DevFmtType fmttype;
+ DevFmtType fmttype;
} formatlist[] = {
{ SND_PCM_FORMAT_FLOAT, DevFmtFloat },
{ SND_PCM_FORMAT_S32, DevFmtInt },
@@ -767,7 +767,7 @@ ALCboolean ALCplaybackAlsa_reset(ALCplaybackAlsa *self)
/* test and set channels (implicitly sets frame bits) */
if(snd_pcm_hw_params_test_channels(self->PcmHandle, hp, device->channelsFromFmt()) < 0)
{
- static const enum DevFmtChannels channellist[] = {
+ static const DevFmtChannels channellist[] = {
DevFmtStereo,
DevFmtQuad,
DevFmtX51,
@@ -1308,7 +1308,7 @@ void AlsaBackendFactory::deinit()
bool AlsaBackendFactory::querySupport(ALCbackend_Type type)
{ return (type == ALCbackend_Playback || type == ALCbackend_Capture); }
-void AlsaBackendFactory::probe(enum DevProbe type, std::string *outnames)
+void AlsaBackendFactory::probe(DevProbe type, std::string *outnames)
{
auto add_device = [outnames](const DevMap &entry) -> void
{
diff --git a/Alc/backends/alsa.h b/Alc/backends/alsa.h
index 3f772115..8ee78f56 100644
--- a/Alc/backends/alsa.h
+++ b/Alc/backends/alsa.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/base.h b/Alc/backends/base.h
index f4de5176..f7be5cd0 100644
--- a/Alc/backends/base.h
+++ b/Alc/backends/base.h
@@ -34,7 +34,7 @@ ClockLatency GetClockLatency(ALCdevice *device);
struct ALCbackendVtable;
struct ALCbackend {
- const struct ALCbackendVtable *vtbl;
+ const ALCbackendVtable *vtbl;
ALCdevice *mDevice;
@@ -84,7 +84,7 @@ DECLARE_THUNK(T, ALCbackend, void, unlock) \
static void T##_ALCbackend_Delete(void *ptr) \
{ T##_Delete(STATIC_UPCAST(T, ALCbackend, (ALCbackend*)ptr)); } \
\
-static const struct ALCbackendVtable T##_ALCbackend_vtable = { \
+static const ALCbackendVtable T##_ALCbackend_vtable = { \
T##_ALCbackend_Destruct, \
\
T##_ALCbackend_open, \
@@ -114,7 +114,7 @@ struct BackendFactory {
virtual bool querySupport(ALCbackend_Type type) = 0;
- virtual void probe(enum DevProbe type, std::string *outnames) = 0;
+ virtual void probe(DevProbe type, std::string *outnames) = 0;
virtual ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) = 0;
};
diff --git a/Alc/backends/coreaudio.cpp b/Alc/backends/coreaudio.cpp
index aaaf6221..c73a67f9 100644
--- a/Alc/backends/coreaudio.cpp
+++ b/Alc/backends/coreaudio.cpp
@@ -754,7 +754,7 @@ bool CoreAudioBackendFactory::init() { return true; }
bool CoreAudioBackendFactory::querySupport(ALCbackend_Type type)
{ return (type == ALCbackend_Playback || ALCbackend_Capture); }
-void CoreAudioBackendFactory::probe(enum DevProbe type, std::string *outnames)
+void CoreAudioBackendFactory::probe(DevProbe type, std::string *outnames)
{
switch(type)
{
diff --git a/Alc/backends/coreaudio.h b/Alc/backends/coreaudio.h
index 2926ee12..bc9c492c 100644
--- a/Alc/backends/coreaudio.h
+++ b/Alc/backends/coreaudio.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/dsound.cpp b/Alc/backends/dsound.cpp
index 26e561bf..4ada7419 100644
--- a/Alc/backends/dsound.cpp
+++ b/Alc/backends/dsound.cpp
@@ -45,7 +45,7 @@
#include "compat.h"
/* MinGW-w64 needs this for some unknown reason now. */
-typedef const WAVEFORMATEX *LPCWAVEFORMATEX;
+using LPCWAVEFORMATEX = const WAVEFORMATEX*;
#include <dsound.h>
@@ -960,7 +960,7 @@ void DSoundBackendFactory::deinit()
bool DSoundBackendFactory::querySupport(ALCbackend_Type type)
{ return (type == ALCbackend_Playback || type == ALCbackend_Capture); }
-void DSoundBackendFactory::probe(enum DevProbe type, std::string *outnames)
+void DSoundBackendFactory::probe(DevProbe type, std::string *outnames)
{
auto add_device = [outnames](const DevMap &entry) -> void
{
diff --git a/Alc/backends/dsound.h b/Alc/backends/dsound.h
index ebaa9c64..3911686e 100644
--- a/Alc/backends/dsound.h
+++ b/Alc/backends/dsound.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/jack.cpp b/Alc/backends/jack.cpp
index 88f60c93..c768983d 100644
--- a/Alc/backends/jack.cpp
+++ b/Alc/backends/jack.cpp
@@ -559,7 +559,7 @@ void JackBackendFactory::deinit()
bool JackBackendFactory::querySupport(ALCbackend_Type type)
{ return (type == ALCbackend_Playback); }
-void JackBackendFactory::probe(enum DevProbe type, std::string *outnames)
+void JackBackendFactory::probe(DevProbe type, std::string *outnames)
{
switch(type)
{
diff --git a/Alc/backends/jack.h b/Alc/backends/jack.h
index 8a6e3a22..bdf73701 100644
--- a/Alc/backends/jack.h
+++ b/Alc/backends/jack.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/loopback.cpp b/Alc/backends/loopback.cpp
index 5a6e14b5..65c87971 100644
--- a/Alc/backends/loopback.cpp
+++ b/Alc/backends/loopback.cpp
@@ -92,7 +92,7 @@ bool LoopbackBackendFactory::init()
bool LoopbackBackendFactory::querySupport(ALCbackend_Type type)
{ return (type == ALCbackend_Loopback); }
-void LoopbackBackendFactory::probe(enum DevProbe, std::string*)
+void LoopbackBackendFactory::probe(DevProbe, std::string*)
{ }
ALCbackend *LoopbackBackendFactory::createBackend(ALCdevice *device, ALCbackend_Type type)
diff --git a/Alc/backends/loopback.h b/Alc/backends/loopback.h
index 68f33a5c..4607d6ed 100644
--- a/Alc/backends/loopback.h
+++ b/Alc/backends/loopback.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/null.cpp b/Alc/backends/null.cpp
index 969193b8..fb113077 100644
--- a/Alc/backends/null.cpp
+++ b/Alc/backends/null.cpp
@@ -180,7 +180,7 @@ bool NullBackendFactory::init()
bool NullBackendFactory::querySupport(ALCbackend_Type type)
{ return (type == ALCbackend_Playback); }
-void NullBackendFactory::probe(enum DevProbe type, std::string *outnames)
+void NullBackendFactory::probe(DevProbe type, std::string *outnames)
{
switch(type)
{
diff --git a/Alc/backends/null.h b/Alc/backends/null.h
index e2adfc33..37457d94 100644
--- a/Alc/backends/null.h
+++ b/Alc/backends/null.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/opensl.cpp b/Alc/backends/opensl.cpp
index ab829e05..9213919b 100644
--- a/Alc/backends/opensl.cpp
+++ b/Alc/backends/opensl.cpp
@@ -46,7 +46,7 @@
static const ALCchar opensl_device[] = "OpenSL";
-static SLuint32 GetChannelMask(enum DevFmtChannels chans)
+static SLuint32 GetChannelMask(DevFmtChannels chans)
{
switch(chans)
{
@@ -75,7 +75,7 @@ static SLuint32 GetChannelMask(enum DevFmtChannels chans)
}
#ifdef SL_DATAFORMAT_PCM_EX
-static SLuint32 GetTypeRepresentation(enum DevFmtType type)
+static SLuint32 GetTypeRepresentation(DevFmtType type)
{
switch(type)
{
@@ -979,7 +979,7 @@ bool OSLBackendFactory::init() { return true; }
bool OSLBackendFactory::querySupport(ALCbackend_Type type)
{ return (type == ALCbackend_Playback || type == ALCbackend_Capture); }
-void OSLBackendFactory::probe(enum DevProbe type, std::string *outnames)
+void OSLBackendFactory::probe(DevProbe type, std::string *outnames)
{
switch(type)
{
diff --git a/Alc/backends/opensl.h b/Alc/backends/opensl.h
index 799d568f..31d0caae 100644
--- a/Alc/backends/opensl.h
+++ b/Alc/backends/opensl.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/oss.cpp b/Alc/backends/oss.cpp
index 4b1d468c..e338c40d 100644
--- a/Alc/backends/oss.cpp
+++ b/Alc/backends/oss.cpp
@@ -170,7 +170,7 @@ void ALCossListPopulate(al::vector<DevMap> *devlist, int type_flag)
goto done;
}
- struct oss_sysinfo si;
+ oss_sysinfo si;
if(ioctl(fd, SNDCTL_SYSINFO, &si) == -1)
{
TRACE("SNDCTL_SYSINFO failed: %s\n", strerror(errno));
@@ -179,7 +179,7 @@ void ALCossListPopulate(al::vector<DevMap> *devlist, int type_flag)
for(int i{0};i < si.numaudios;i++)
{
- struct oss_audioinfo ai;
+ oss_audioinfo ai;
ai.dev = i;
if(ioctl(fd, SNDCTL_AUDIOINFO, &ai) == -1)
{
@@ -759,7 +759,7 @@ void OSSBackendFactory::deinit()
bool OSSBackendFactory::querySupport(ALCbackend_Type type)
{ return (type == ALCbackend_Playback || type == ALCbackend_Capture); }
-void OSSBackendFactory::probe(enum DevProbe type, std::string *outnames)
+void OSSBackendFactory::probe(DevProbe type, std::string *outnames)
{
auto add_device = [outnames](const DevMap &entry) -> void
{
diff --git a/Alc/backends/oss.h b/Alc/backends/oss.h
index c3865d84..4652a779 100644
--- a/Alc/backends/oss.h
+++ b/Alc/backends/oss.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/portaudio.cpp b/Alc/backends/portaudio.cpp
index a89959b6..59b357b5 100644
--- a/Alc/backends/portaudio.cpp
+++ b/Alc/backends/portaudio.cpp
@@ -488,7 +488,7 @@ void PortBackendFactory::deinit()
bool PortBackendFactory::querySupport(ALCbackend_Type type)
{ return (type == ALCbackend_Playback || type == ALCbackend_Capture); }
-void PortBackendFactory::probe(enum DevProbe type, std::string *outnames)
+void PortBackendFactory::probe(DevProbe type, std::string *outnames)
{
switch(type)
{
diff --git a/Alc/backends/portaudio.h b/Alc/backends/portaudio.h
index 598cd13d..581d4901 100644
--- a/Alc/backends/portaudio.h
+++ b/Alc/backends/portaudio.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/pulseaudio.cpp b/Alc/backends/pulseaudio.cpp
index cbf2992d..8428b9d8 100644
--- a/Alc/backends/pulseaudio.cpp
+++ b/Alc/backends/pulseaudio.cpp
@@ -1791,7 +1791,7 @@ bool PulseBackendFactory::querySupport(ALCbackend_Type type)
return false;
}
-void PulseBackendFactory::probe(enum DevProbe type, std::string *outnames)
+void PulseBackendFactory::probe(DevProbe type, std::string *outnames)
{
auto add_device = [outnames](const DevMap &entry) -> void
{
diff --git a/Alc/backends/pulseaudio.h b/Alc/backends/pulseaudio.h
index 63b5bbbb..eb7045dc 100644
--- a/Alc/backends/pulseaudio.h
+++ b/Alc/backends/pulseaudio.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/qsa.cpp b/Alc/backends/qsa.cpp
index f0d1876e..f14718c0 100644
--- a/Alc/backends/qsa.cpp
+++ b/Alc/backends/qsa.cpp
@@ -119,7 +119,7 @@ void deviceList(int type, al::vector<DevMap> *devmap)
int max_cards, card, err, dev;
DevMap entry;
char name[1024];
- struct snd_ctl_hw_info info;
+ snd_ctl_hw_info info;
max_cards = snd_cards();
if(max_cards < 0)
@@ -195,7 +195,7 @@ FORCE_ALIGN static int qsa_proc_playback(void *ptr)
ALCdevice *device = STATIC_CAST(ALCbackend,self)->mDevice;
qsa_data *data = self->ExtraData;
snd_pcm_channel_status_t status;
- struct sched_param param;
+ sched_param param;
char* write_ptr;
ALint len;
int sret;
@@ -978,7 +978,7 @@ void QSABackendFactory::deinit()
bool QSABackendFactory::querySupport(ALCbackend_Type type)
{ return (type == ALCbackend_Playback || type == ALCbackend_Capture); }
-void QSABackendFactory::probe(enum DevProbe type, std::string *outnames)
+void QSABackendFactory::probe(DevProbe type, std::string *outnames)
{
auto add_device = [outnames](const DevMap &entry) -> void
{
diff --git a/Alc/backends/qsa.h b/Alc/backends/qsa.h
index c4941392..99d80106 100644
--- a/Alc/backends/qsa.h
+++ b/Alc/backends/qsa.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/sdl2.cpp b/Alc/backends/sdl2.cpp
index f0c98fab..d61e0a1b 100644
--- a/Alc/backends/sdl2.cpp
+++ b/Alc/backends/sdl2.cpp
@@ -44,8 +44,8 @@ struct ALCsdl2Backend final : public ALCbackend {
ALsizei frameSize;
ALuint Frequency;
- enum DevFmtChannels FmtChans;
- enum DevFmtType FmtType;
+ DevFmtChannels FmtChans;
+ DevFmtType FmtType;
ALuint UpdateSize;
};
@@ -233,7 +233,7 @@ bool SDL2BackendFactory::querySupport(ALCbackend_Type type)
return (type == ALCbackend_Playback);
}
-void SDL2BackendFactory::probe(enum DevProbe type, std::string *outnames)
+void SDL2BackendFactory::probe(DevProbe type, std::string *outnames)
{
if(type != ALL_DEVICE_PROBE)
return;
diff --git a/Alc/backends/sdl2.h b/Alc/backends/sdl2.h
index 7f383447..7bf4d0e4 100644
--- a/Alc/backends/sdl2.h
+++ b/Alc/backends/sdl2.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/sndio.cpp b/Alc/backends/sndio.cpp
index 25566490..2be1d26c 100644
--- a/Alc/backends/sndio.cpp
+++ b/Alc/backends/sndio.cpp
@@ -40,7 +40,7 @@ static const ALCchar sndio_device[] = "SndIO Default";
struct SndioPlayback final : public ALCbackend {
- struct sio_hdl *sndHandle{nullptr};
+ sio_hdl *sndHandle{nullptr};
ALvoid *mix_data{nullptr};
ALsizei data_size{0};
@@ -152,7 +152,7 @@ static ALCenum SndioPlayback_open(SndioPlayback *self, const ALCchar *name)
static ALCboolean SndioPlayback_reset(SndioPlayback *self)
{
ALCdevice *device = STATIC_CAST(ALCbackend,self)->mDevice;
- struct sio_par par;
+ sio_par par;
sio_initpar(&par);
@@ -277,7 +277,7 @@ static void SndioPlayback_stop(SndioPlayback *self)
struct SndioCapture final : public ALCbackend {
- struct sio_hdl *sndHandle{nullptr};
+ sio_hdl *sndHandle{nullptr};
RingBufferPtr ring{nullptr};
@@ -379,7 +379,7 @@ static int SndioCapture_recordProc(SndioCapture *self)
static ALCenum SndioCapture_open(SndioCapture *self, const ALCchar *name)
{
ALCdevice *device = STATIC_CAST(ALCbackend,self)->mDevice;
- struct sio_par par;
+ sio_par par;
if(!name)
name = sndio_device;
@@ -536,7 +536,7 @@ bool SndIOBackendFactory::init()
bool SndIOBackendFactory::querySupport(ALCbackend_Type type)
{ return (type == ALCbackend_Playback || type == ALCbackend_Capture); }
-void SndIOBackendFactory::probe(enum DevProbe type, std::string *outnames)
+void SndIOBackendFactory::probe(DevProbe type, std::string *outnames)
{
switch(type)
{
diff --git a/Alc/backends/sndio.h b/Alc/backends/sndio.h
index 38cd2767..20e99afb 100644
--- a/Alc/backends/sndio.h
+++ b/Alc/backends/sndio.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/solaris.cpp b/Alc/backends/solaris.cpp
index 79341ad1..41026de8 100644
--- a/Alc/backends/solaris.cpp
+++ b/Alc/backends/solaris.cpp
@@ -301,7 +301,7 @@ bool SolarisBackendFactory::init()
bool SolarisBackendFactory::querySupport(ALCbackend_Type type)
{ return (type == ALCbackend_Playback); }
-void SolarisBackendFactory::probe(enum DevProbe type, std::string *outnames)
+void SolarisBackendFactory::probe(DevProbe type, std::string *outnames)
{
switch(type)
{
diff --git a/Alc/backends/solaris.h b/Alc/backends/solaris.h
index dcb34570..73f4a467 100644
--- a/Alc/backends/solaris.h
+++ b/Alc/backends/solaris.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/wasapi.cpp b/Alc/backends/wasapi.cpp
index 3f8cad23..c1b4bddb 100644
--- a/Alc/backends/wasapi.cpp
+++ b/Alc/backends/wasapi.cpp
@@ -1601,7 +1601,7 @@ HRESULT ALCwasapiCapture::resetProxy()
wfx = nullptr;
}
- enum DevFmtType srcType;
+ DevFmtType srcType;
if(IsEqualGUID(OutputType.SubFormat, KSDATAFORMAT_SUBTYPE_PCM))
{
if(OutputType.Format.wBitsPerSample == 8)
@@ -1839,7 +1839,7 @@ void WasapiBackendFactory::deinit()
bool WasapiBackendFactory::querySupport(ALCbackend_Type type)
{ return (type == ALCbackend_Playback || type == ALCbackend_Capture); }
-void WasapiBackendFactory::probe(enum DevProbe type, std::string *outnames)
+void WasapiBackendFactory::probe(DevProbe type, std::string *outnames)
{
ThreadRequest req{ nullptr, 0 };
diff --git a/Alc/backends/wasapi.h b/Alc/backends/wasapi.h
index 2ee10ac8..a94f85df 100644
--- a/Alc/backends/wasapi.h
+++ b/Alc/backends/wasapi.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/wave.cpp b/Alc/backends/wave.cpp
index 463e6bd7..d40e93f0 100644
--- a/Alc/backends/wave.cpp
+++ b/Alc/backends/wave.cpp
@@ -385,7 +385,7 @@ bool WaveBackendFactory::init()
bool WaveBackendFactory::querySupport(ALCbackend_Type type)
{ return (type == ALCbackend_Playback); }
-void WaveBackendFactory::probe(enum DevProbe type, std::string *outnames)
+void WaveBackendFactory::probe(DevProbe type, std::string *outnames)
{
switch(type)
{
diff --git a/Alc/backends/wave.h b/Alc/backends/wave.h
index 65bb5ecf..bb51cc71 100644
--- a/Alc/backends/wave.h
+++ b/Alc/backends/wave.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;
diff --git a/Alc/backends/winmm.cpp b/Alc/backends/winmm.cpp
index 38766869..0ebba81c 100644
--- a/Alc/backends/winmm.cpp
+++ b/Alc/backends/winmm.cpp
@@ -669,7 +669,7 @@ void WinMMBackendFactory::deinit()
bool WinMMBackendFactory::querySupport(ALCbackend_Type type)
{ return (type == ALCbackend_Playback || type == ALCbackend_Capture); }
-void WinMMBackendFactory::probe(enum DevProbe type, std::string *outnames)
+void WinMMBackendFactory::probe(DevProbe type, std::string *outnames)
{
auto add_device = [outnames](const std::string &dname) -> void
{
diff --git a/Alc/backends/winmm.h b/Alc/backends/winmm.h
index b60dbc10..e5801c01 100644
--- a/Alc/backends/winmm.h
+++ b/Alc/backends/winmm.h
@@ -10,7 +10,7 @@ public:
bool querySupport(ALCbackend_Type type) override;
- void probe(enum DevProbe type, std::string *outnames) override;
+ void probe(DevProbe type, std::string *outnames) override;
ALCbackend *createBackend(ALCdevice *device, ALCbackend_Type type) override;