From 42f3c53b7440d6b7a9184c4fb9edc332d3feee8f Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 18 Feb 2020 07:42:16 +1100 Subject: [PATCH] Fix last commit which I intentionally broke --- src/Audio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Audio.c b/src/Audio.c index dd40ed203..69024ccce 100644 --- a/src/Audio.c +++ b/src/Audio.c @@ -317,7 +317,7 @@ cc_result Audio_SetFormat(AudioHandle handle, struct AudioFormat* format) { ALenum err; if (AudioFormat_Eq(cur, format)) return 0; - ctx->dataFormat = GetALFormat(format->Channels); + ctx->dataFormat = GetALFormat(format->channels); ctx->format = *format; if ((err = Audio_FreeSource(ctx))) return err; @@ -335,7 +335,7 @@ cc_result Audio_BufferData(AudioHandle handle, int idx, void* data, cc_uint32 da ALenum err; ctx->completed[idx] = false; - alBufferData(buffer, ctx->dataFormat, data, dataSize, ctx->format.SampleRate); + alBufferData(buffer, ctx->dataFormat, data, dataSize, ctx->format.sampleRate); if ((err = alGetError())) return err; alSourceQueueBuffers(ctx->source, 1, &buffer); if ((err = alGetError())) return err;