mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 18:15:28 -04:00
Fix OpenAL backend not compiling
This commit is contained in:
parent
bf2d34dc34
commit
94415a57c6
@ -236,7 +236,7 @@ cc_result Audio_QueueData(struct AudioContext* ctx, void* data, cc_uint32 size)
|
|||||||
if (!ctx->free) return ERR_INVALID_ARGUMENT;
|
if (!ctx->free) return ERR_INVALID_ARGUMENT;
|
||||||
buffer = ctx->freeIDs[--ctx->free];
|
buffer = ctx->freeIDs[--ctx->free];
|
||||||
|
|
||||||
_alBufferData(buffer, ctx->dataFormat, data, size, ctx->format.sampleRate);
|
_alBufferData(buffer, ctx->dataFormat, data, size, ctx->sampleRate);
|
||||||
if ((err = _alGetError())) return err;
|
if ((err = _alGetError())) return err;
|
||||||
_alSourceQueueBuffers(ctx->source, 1, &buffer);
|
_alSourceQueueBuffers(ctx->source, 1, &buffer);
|
||||||
if ((err = _alGetError())) return err;
|
if ((err = _alGetError())) return err;
|
||||||
|
@ -64,8 +64,8 @@ static int Program_Run(int argc, char** argv) {
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
/* NOTE: Make sure to comment this out before pushing a commit */
|
/* NOTE: Make sure to comment this out before pushing a commit */
|
||||||
//cc_string rawArgs = String_FromConst("UnknownShadow200 fffff 127.0.0.1 25565");
|
//cc_string rawArgs = String_FromConst("UnknownShadow200 fffff 127.0.0.1 25565");
|
||||||
cc_string rawArgs = String_FromConst("UnknownShadow200");
|
//cc_string rawArgs = String_FromConst("UnknownShadow200");
|
||||||
argsCount = String_UNSAFE_Split(&rawArgs, ' ', args, 4);
|
//argsCount = String_UNSAFE_Split(&rawArgs, ' ', args, 4);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (argsCount == 0) {
|
if (argsCount == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user