mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-15 10:35:11 -04:00
Fix OpenAL audio backend not compiling
This commit is contained in:
parent
8c5cd2f303
commit
015b56f71d
@ -270,7 +270,7 @@ cc_result Audio_IsFinished(struct AudioContext* ctx, cc_bool* finished) {
|
|||||||
cc_result res;
|
cc_result res;
|
||||||
|
|
||||||
if (ctx->source == -1) { *finished = true; return 0; }
|
if (ctx->source == -1) { *finished = true; return 0; }
|
||||||
res = Audio_AllAvailable(handle, finished);
|
res = Audio_AllAvailable(ctx, finished);
|
||||||
if (res) return res;
|
if (res) return res;
|
||||||
|
|
||||||
_alGetSourcei(ctx->source, AL_SOURCE_STATE, &state);
|
_alGetSourcei(ctx->source, AL_SOURCE_STATE, &state);
|
||||||
@ -607,7 +607,7 @@ static cc_result Sound_ReadWaveData(struct Stream* stream, struct Sound* snd) {
|
|||||||
cc_result res;
|
cc_result res;
|
||||||
int bitsPerSample;
|
int bitsPerSample;
|
||||||
|
|
||||||
if ((res = Stream_Read(stream, tmp, 12))) return res;
|
if ((res = Stream_Read(stream, tmp, 12))) return res;
|
||||||
fourCC = Stream_GetU32_BE(tmp + 0);
|
fourCC = Stream_GetU32_BE(tmp + 0);
|
||||||
if (fourCC != WAV_FourCC('R','I','F','F')) return WAV_ERR_STREAM_HDR;
|
if (fourCC != WAV_FourCC('R','I','F','F')) return WAV_ERR_STREAM_HDR;
|
||||||
/* tmp[4] (4) file size */
|
/* tmp[4] (4) file size */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user