From 86683264c93b6c2743fad9fb8673bbd6b9b7d680 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 1 Apr 2019 21:35:52 -0700 Subject: Avoid multiple using statements for the same things --- Alc/alc.cpp | 12 +++--------- 1 file 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 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 _{dev->StateLock}; - using std::chrono::seconds; - using std::chrono::nanoseconds; - nanoseconds basecount; ALuint samplecount; ALuint refcount; -- cgit v1.2.3