From 5867c7b8c213aa47659e7c6e6cafddc643d9ea76 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 13 Nov 2018 19:45:26 -0800 Subject: Don't bother inlining some functions --- Alc/backends/base.cpp | 14 ++++++++++++++ Alc/backends/base.h | 16 +++------------- 2 files changed, 17 insertions(+), 13 deletions(-) (limited to 'Alc/backends') diff --git a/Alc/backends/base.cpp b/Alc/backends/base.cpp index 8173f554..4a20518d 100644 --- a/Alc/backends/base.cpp +++ b/Alc/backends/base.cpp @@ -9,6 +9,20 @@ #include "backends/base.h" +void ALCdevice_Lock(ALCdevice *device) +{ V0(device->Backend,lock)(); } + +void ALCdevice_Unlock(ALCdevice *device) +{ V0(device->Backend,unlock)(); } + +ClockLatency GetClockLatency(ALCdevice *device) +{ + ClockLatency ret = V0(device->Backend,getClockLatency)(); + ret.Latency += device->FixedLatency; + return ret; +} + + /* Base ALCbackend method implementations. */ void ALCbackend_Construct(ALCbackend *self, ALCdevice *device) { diff --git a/Alc/backends/base.h b/Alc/backends/base.h index 03db56e9..bf60a744 100644 --- a/Alc/backends/base.h +++ b/Alc/backends/base.h @@ -156,20 +156,10 @@ ALCbackendFactory *ALCsdl2BackendFactory_getFactory(void); ALCbackendFactory *ALCloopbackFactory_getFactory(void); -inline void ALCdevice_Lock(ALCdevice *device) -{ V0(device->Backend,lock)(); } - -inline void ALCdevice_Unlock(ALCdevice *device) -{ V0(device->Backend,unlock)(); } - - -inline ClockLatency GetClockLatency(ALCdevice *device) -{ - ClockLatency ret = V0(device->Backend,getClockLatency)(); - ret.Latency += device->FixedLatency; - return ret; -} +void ALCdevice_Lock(ALCdevice *device); +void ALCdevice_Unlock(ALCdevice *device); +ClockLatency GetClockLatency(ALCdevice *device); #ifdef __cplusplus } /* extern "C" */ -- cgit v1.2.3