aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-29 01:38:26 -0800
committerChris Robinson <[email protected]>2018-12-29 01:38:26 -0800
commit3c637d5fd70e7bdb5dfc79c515359cba3eb0c9af (patch)
treeb053ef719d9854ea9d96429700fddd22f9768e53 /Alc/alc.cpp
parent8fd44772153c903e47529bde63fce40c56d7277d (diff)
Make the backend type an enum class
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index 95592556..c625fd20 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -1116,12 +1116,12 @@ static void alc_initconfig(void)
}
TRACE("Initialized backend \"%s\"\n", BackendList[n].name);
- if(!PlaybackBackend.name && factory.querySupport(ALCbackend_Playback))
+ if(!PlaybackBackend.name && factory.querySupport(BackendType::Playback))
{
PlaybackBackend = BackendList[n];
TRACE("Added \"%s\" for playback\n", PlaybackBackend.name);
}
- if(!CaptureBackend.name && factory.querySupport(ALCbackend_Capture))
+ if(!CaptureBackend.name && factory.querySupport(BackendType::Capture))
{
CaptureBackend = BackendList[n];
TRACE("Added \"%s\" for capture\n", CaptureBackend.name);
@@ -3768,8 +3768,8 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName)
device->NumStereoSources = 1;
device->NumMonoSources = device->SourcesMax - device->NumStereoSources;
- device->Backend = PlaybackBackend.getFactory().createBackend(
- device.get(), ALCbackend_Playback);
+ device->Backend = PlaybackBackend.getFactory().createBackend(device.get(),
+ BackendType::Playback);
if(!device->Backend)
{
device = nullptr;
@@ -3917,7 +3917,8 @@ ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice(const ALCchar *deviceName,
device->UpdateSize = samples;
device->NumUpdates = 1;
- device->Backend = CaptureBackend.getFactory().createBackend(device.get(), ALCbackend_Capture);
+ device->Backend = CaptureBackend.getFactory().createBackend(device.get(),
+ BackendType::Capture);
if(!device->Backend)
{
device = nullptr;
@@ -4093,8 +4094,8 @@ ALC_API ALCdevice* ALC_APIENTRY alcLoopbackOpenDeviceSOFT(const ALCchar *deviceN
device->NumStereoSources = 1;
device->NumMonoSources = device->SourcesMax - device->NumStereoSources;
- device->Backend = LoopbackBackendFactory::getFactory().createBackend(
- device.get(), ALCbackend_Loopback);
+ device->Backend = LoopbackBackendFactory::getFactory().createBackend(device.get(),
+ BackendType::Loopback);
if(!device->Backend)
{
device = nullptr;