aboutsummaryrefslogtreecommitdiffstats
path: root/al/buffer.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-14 01:27:42 -0700
committerChris Robinson <[email protected]>2023-05-14 01:27:42 -0700
commit1b2e5ba854c5c7fa35deb8cfb17f413341596a77 (patch)
treec1c785f4952b8b6a7b43d8e3be6cf6c6ad0e5b61 /al/buffer.cpp
parent6a007660fb7bac51f01ef0b9466bfcc6ade7389b (diff)
Implement direct functions for extension queries and EAX
Diffstat (limited to 'al/buffer.cpp')
-rw-r--r--al/buffer.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/al/buffer.cpp b/al/buffer.cpp
index bfc10906..216c82eb 100644
--- a/al/buffer.cpp
+++ b/al/buffer.cpp
@@ -1547,10 +1547,12 @@ BufferSubList::~BufferSubList()
#ifdef ALSOFT_EAX
FORCE_ALIGN ALboolean AL_APIENTRY EAXSetBufferMode(ALsizei n, const ALuint *buffers, ALint value) noexcept
+{ return EAXSetBufferModeDirect(GetContextRef().get(), n, buffers, value); }
+FORCE_ALIGN ALboolean AL_APIENTRY EAXSetBufferModeDirect(ALCcontext *context, ALsizei n,
+ const ALuint *buffers, ALint value) noexcept
{
#define EAX_PREFIX "[EAXSetBufferMode] "
- const auto context = ContextRef{GetContextRef()};
if(!context)
{
ERR(EAX_PREFIX "%s\n", "No current context.");
@@ -1688,10 +1690,12 @@ FORCE_ALIGN ALboolean AL_APIENTRY EAXSetBufferMode(ALsizei n, const ALuint *buff
}
FORCE_ALIGN ALenum AL_APIENTRY EAXGetBufferMode(ALuint buffer, ALint *pReserved) noexcept
+{ return EAXGetBufferModeDirect(GetContextRef().get(), buffer, pReserved); }
+FORCE_ALIGN ALenum AL_APIENTRY EAXGetBufferModeDirect(ALCcontext *context, ALuint buffer,
+ ALint *pReserved) noexcept
{
#define EAX_PREFIX "[EAXGetBufferMode] "
- const auto context = ContextRef{GetContextRef()};
if(!context)
{
ERR(EAX_PREFIX "%s\n", "No current context.");