aboutsummaryrefslogtreecommitdiffstats
path: root/al/source.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-11-11 20:37:52 -0800
committerChris Robinson <[email protected]>2023-11-11 20:37:52 -0800
commitb5f5622de373ebb3dac9a1b0ce15a12d84e03b19 (patch)
tree6277c86aafea92aa546dd1ccebacbc0f79c1b705 /al/source.cpp
parent62995788b1fbdf2c64ef23158c60e8e5ddd290b5 (diff)
Make a couple global values/variables inline
Diffstat (limited to 'al/source.cpp')
-rw-r--r--al/source.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/al/source.cpp b/al/source.cpp
index 8ad02321..fe5bba40 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -78,8 +78,6 @@
#include <cassert>
#endif // ALSOFT_EAX
-bool sBufferSubDataCompat{false};
-
namespace {
using namespace std::placeholders;
@@ -97,7 +95,7 @@ Voice *GetSourceVoice(ALsource *source, ALCcontext *context)
if(voice->mSourceID.load(std::memory_order_acquire) == sid)
return voice;
}
- source->VoiceIdx = INVALID_VOICE_IDX;
+ source->VoiceIdx = InvalidVoiceIndex;
return nullptr;
}
@@ -3310,7 +3308,7 @@ FORCE_ALIGN void AL_APIENTRY alSourceStopvDirect(ALCcontext *context, ALsizei n,
}
source->Offset = 0.0;
source->OffsetType = AL_NONE;
- source->VoiceIdx = INVALID_VOICE_IDX;
+ source->VoiceIdx = InvalidVoiceIndex;
}
if(tail) LIKELY
SendVoiceChanges(context, tail);
@@ -3371,7 +3369,7 @@ FORCE_ALIGN void AL_APIENTRY alSourceRewindvDirect(ALCcontext *context, ALsizei
}
source->Offset = 0.0;
source->OffsetType = AL_NONE;
- source->VoiceIdx = INVALID_VOICE_IDX;
+ source->VoiceIdx = InvalidVoiceIndex;
}
if(tail) LIKELY
SendVoiceChanges(context, tail);