diff options
author | Chris Robinson <[email protected]> | 2023-09-26 18:41:25 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-09-26 18:41:25 -0700 |
commit | 67fb29ec2c61f375b71eb9787b365b3dbd375516 (patch) | |
tree | 7c2aa41f189a1c9a46f18e4f4b8df696c4c2bf8f /al | |
parent | 43a57e02ea5b767960b9da2899d5765dae46a035 (diff) |
Don't inline a couple more template functions
I still wish I didn't have to force noinline just to avoid template functions
being more aggressively inlined.
Diffstat (limited to 'al')
-rw-r--r-- | al/source.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/al/source.cpp b/al/source.cpp index 2fbd1703..ce256f7a 100644 --- a/al/source.cpp +++ b/al/source.cpp @@ -284,7 +284,7 @@ double GetSourceSecOffset(ALsource *Source, ALCcontext *context, nanoseconds *cl * queue (not the start of the current buffer). */ template<typename T> -T GetSourceOffset(ALsource *Source, ALenum name, ALCcontext *context) +NOINLINE T GetSourceOffset(ALsource *Source, ALenum name, ALCcontext *context) { ALCdevice *device{context->mALDevice.get()}; const VoiceBufferItem *Current{}; @@ -377,7 +377,7 @@ T GetSourceOffset(ALsource *Source, ALenum name, ALCcontext *context) * format (Bytes, Samples or Seconds). */ template<typename T> -T GetSourceLength(const ALsource *source, ALenum name) +NOINLINE T GetSourceLength(const ALsource *source, ALenum name) { uint64_t length{0}; const ALbuffer *BufferFmt{nullptr}; |