Skip to content

Commit 8bcdfce

Browse files
committed
api: Added alGenStreamingBuffers, a pre-1.0 entry point that Loki's UT99 uses.
1 parent d8a7899 commit 8bcdfce

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
@@ -4698,6 +4698,17 @@ static void _alGenBuffers(const ALsizei n, ALuint *names)
46984698
}
46994699
ENTRYPOINTVOID(alGenBuffers,(ALsizei n, ALuint *names),(n,names))
47004700

4701+
/*
4702+
* alGenStreamingBuffers was a pre-1.0 API. The Loki version of Unreal Tournament '99 uses it.
4703+
* It appears to be identical to alGenBuffers, but was probably meant to be
4704+
* a hint to the AL that the buffer's contents would be replaced frequently.
4705+
*/
4706+
static void _alGenStreamingBuffers(const ALsizei n, ALuint *names)
4707+
{
4708+
_alGenBuffers(n, names);
4709+
}
4710+
ENTRYPOINTVOID(alGenStreamingBuffers,(ALsizei n, ALuint *names),(n,names))
4711+
47014712
static void _alDeleteBuffers(const ALsizei n, const ALuint *names)
47024713
{
47034714
ALCcontext *ctx = get_current_context();

0 commit comments

Comments
 (0)