Skip to content

Commit

Permalink
Make sure extension functions are properly aligned on 32-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Apr 13, 2023
1 parent d3875f3 commit d9fed51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions al/buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()};
Expand Down
5 changes: 3 additions & 2 deletions al/source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()};
Expand Down Expand Up @@ -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()};
Expand Down

0 comments on commit d9fed51

Please sign in to comment.