aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-04-01 21:35:52 -0700
committerChris Robinson <[email protected]>2019-04-01 21:35:52 -0700
commit86683264c93b6c2743fad9fb8673bbd6b9b7d680 (patch)
tree6becca95377ebd74dab3e434bae6c9eb585eb6a1
parent8781a32df56acb744a1185942bbf038aae07612d (diff)
Avoid multiple using statements for the same things
-rw-r--r--Alc/alc.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index 441add06..60920e54 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -116,6 +116,9 @@
namespace {
using namespace std::placeholders;
+using std::chrono::seconds;
+using std::chrono::nanoseconds;
+
/************************************************
* Backends
@@ -1570,9 +1573,6 @@ static std::unique_ptr<Compressor> CreateDeviceLimiter(const ALCdevice *device,
*/
static inline void UpdateClockBase(ALCdevice *device)
{
- using std::chrono::seconds;
- using std::chrono::nanoseconds;
-
IncrementRef(&device->MixCount);
device->ClockBase += nanoseconds{seconds{device->SamplesDone}} / device->Frequency;
device->SamplesDone = 0;
@@ -1586,9 +1586,6 @@ static inline void UpdateClockBase(ALCdevice *device)
*/
static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
{
- using std::chrono::seconds;
- using std::chrono::nanoseconds;
-
HrtfRequestMode hrtf_userreq = Hrtf_Default;
HrtfRequestMode hrtf_appreq = Hrtf_Default;
ALCenum gainLimiter = device->LimiterState;
@@ -3269,9 +3266,6 @@ ALC_API void ALC_APIENTRY alcGetInteger64vSOFT(ALCdevice *device, ALCenum pname,
case ALC_DEVICE_CLOCK_SOFT:
{ std::lock_guard<std::mutex> _{dev->StateLock};
- using std::chrono::seconds;
- using std::chrono::nanoseconds;
-
nanoseconds basecount;
ALuint samplecount;
ALuint refcount;