aboutsummaryrefslogtreecommitdiffstats
path: root/al
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-04-12 23:39:57 -0700
committerChris Robinson <[email protected]>2023-04-12 23:39:57 -0700
commitd9fed51aa6391debc31dbbca550f055c980afe70 (patch)
tree2ada69829d80b934b4afebdfc44f91ef2ab789d5 /al
parentd3875f333fb6abe2f39d82caca329414871ae53b (diff)
Make sure extension functions are properly aligned on 32-bit
Diffstat (limited to 'al')
-rw-r--r--al/buffer.cpp4
-rw-r--r--al/source.cpp5
2 files changed, 5 insertions, 4 deletions
diff --git a/al/buffer.cpp b/al/buffer.cpp
index ee506596..93484e7d 100644
--- a/al/buffer.cpp
+++ b/al/buffer.cpp
@@ -773,8 +773,8 @@ START_API_FUNC
}
END_API_FUNC
-void AL_APIENTRY alBufferDataStatic(const ALuint buffer, ALenum format, ALvoid *data, ALsizei size,
- ALsizei freq)
+FORCE_ALIGN void AL_APIENTRY alBufferDataStatic(const ALuint buffer, ALenum format, ALvoid *data,
+ ALsizei size, ALsizei freq)
START_API_FUNC
{
ContextRef context{GetContextRef()};
diff --git a/al/source.cpp b/al/source.cpp
index cba33862..bdc7e878 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -3492,7 +3492,7 @@ START_API_FUNC
}
END_API_FUNC
-void AL_APIENTRY alSourcePlayAtTimeSOFT(ALuint source, ALint64SOFT start_time)
+FORCE_ALIGN void AL_APIENTRY alSourcePlayAtTimeSOFT(ALuint source, ALint64SOFT start_time)
START_API_FUNC
{
ContextRef context{GetContextRef()};
@@ -3544,7 +3544,8 @@ START_API_FUNC
}
END_API_FUNC
-void AL_APIENTRY alSourcePlayAtTimevSOFT(ALsizei n, const ALuint *sources, ALint64SOFT start_time)
+FORCE_ALIGN void AL_APIENTRY alSourcePlayAtTimevSOFT(ALsizei n, const ALuint *sources,
+ ALint64SOFT start_time)
START_API_FUNC
{
ContextRef context{GetContextRef()};