aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-03-11 04:59:58 -0800
committerChris Robinson <[email protected]>2021-03-11 04:59:58 -0800
commitca0a6024a322bcc160daf197215aa4deb51fce2a (patch)
treea56c712aa82bac42a43f8d29e36fff03fca5476e /alc/alc.cpp
parente43bbbd3b8fb5ad552bdad6869274d99c4ccfbf9 (diff)
Avoid shadowing variable names
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index b8677edd..6c2f3f44 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -2891,9 +2891,9 @@ static size_t GetIntegerv(ALCdevice *device, ALCenum param, const al::span<int>
}
/* render device */
- auto NumAttrsForDevice = [](ALCdevice *device) noexcept
+ auto NumAttrsForDevice = [](ALCdevice *aldev) noexcept
{
- if(device->Type == DeviceType::Loopback && device->FmtChans == DevFmtAmbi3D)
+ if(aldev->Type == DeviceType::Loopback && aldev->FmtChans == DevFmtAmbi3D)
return 35;
return 29;
};
@@ -3139,9 +3139,9 @@ START_API_FUNC
return;
}
/* render device */
- auto NumAttrsForDevice = [](ALCdevice *device) noexcept
+ auto NumAttrsForDevice = [](ALCdevice *aldev) noexcept
{
- if(device->Type == DeviceType::Loopback && device->FmtChans == DevFmtAmbi3D)
+ if(aldev->Type == DeviceType::Loopback && aldev->FmtChans == DevFmtAmbi3D)
return 39;
return 33;
};
@@ -4232,8 +4232,8 @@ START_API_FUNC
backend->start();
dev->Flags.set(DeviceRunning);
}
- catch(al::backend_exception& e) {
- dev->handleDisconnect("%s", e.what());
+ catch(al::backend_exception &be) {
+ dev->handleDisconnect("%s", be.what());
}
}
return ALC_FALSE;