diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2023-11-11 20:37:52 -0800 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2023-11-11 20:37:52 -0800 |
commit | b5f5622de373ebb3dac9a1b0ce15a12d84e03b19 (patch) | |
tree | 6277c86aafea92aa546dd1ccebacbc0f79c1b705 /al/source.h | |
parent | 62995788b1fbdf2c64ef23158c60e8e5ddd290b5 (diff) |
Make a couple global values/variables inline
Diffstat (limited to 'al/source.h')
-rw-r--r-- | al/source.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/al/source.h b/al/source.h index 95978ec7..c7694f83 100644 --- a/al/source.h +++ b/al/source.h @@ -39,9 +39,9 @@ enum class SourceStereo : bool { #define DEFAULT_SENDS 2 -#define INVALID_VOICE_IDX static_cast<ALuint>(-1) +inline constexpr ALuint InvalidVoiceIndex{std::numeric_limits<ALuint>::max()}; -extern bool sBufferSubDataCompat; +inline bool sBufferSubDataCompat{false}; struct ALbufferQueueItem : public VoiceBufferItem { ALbuffer *mBuffer{nullptr}; @@ -145,7 +145,7 @@ struct ALsource { /* Index into the context's Voices array. Lazily updated, only checked and * reset when looking up the voice. */ - ALuint VoiceIdx{INVALID_VOICE_IDX}; + ALuint VoiceIdx{InvalidVoiceIndex}; /** Self ID */ ALuint id{0}; |