Skip to content

Commit abbf12b

Browse files
committed
api: Added alGenStreamingBuffers, a pre-1.0 entry point that Loki's UT99 uses.
(cherry picked from commit 8bcdfce)
1 parent f9acca2 commit abbf12b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mojoal.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4654,6 +4654,17 @@ static void _alGenBuffers(const ALsizei n, ALuint *names)
46544654
}
46554655
ENTRYPOINTVOID(alGenBuffers,(ALsizei n, ALuint *names),(n,names))
46564656

4657+
/*
4658+
* alGenStreamingBuffers was a pre-1.0 API. The Loki version of Unreal Tournament '99 uses it.
4659+
* It appears to be identical to alGenBuffers, but was probably meant to be
4660+
* a hint to the AL that the buffer's contents would be replaced frequently.
4661+
*/
4662+
static void _alGenStreamingBuffers(const ALsizei n, ALuint *names)
4663+
{
4664+
_alGenBuffers(n, names);
4665+
}
4666+
ENTRYPOINTVOID(alGenStreamingBuffers,(ALsizei n, ALuint *names),(n,names))
4667+
46574668
static void _alDeleteBuffers(const ALsizei n, const ALuint *names)
46584669
{
46594670
ALCcontext *ctx = get_current_context();

0 commit comments

Comments
 (0)