summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2023-02-06 11:02:46 +0100
committerRay <[email protected]>2023-02-06 11:02:46 +0100
commite187b693eaa4873a0d44d6578f44c269fd751315 (patch)
treebf3fdca3da429e6a2e9a778f67c20d4941637d55
parent04ab76b88927981844aedcdeaebd8f1866a32406 (diff)
downloadraylib-e187b693eaa4873a0d44d6578f44c269fd751315.tar.gz
raylib-e187b693eaa4873a0d44d6578f44c269fd751315.zip
Update raudio.c
-rw-r--r--src/raudio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/raudio.c b/src/raudio.c
index 04ae35c5..4705ca58 100644
--- a/src/raudio.c
+++ b/src/raudio.c
@@ -1380,6 +1380,7 @@ Music LoadMusicStream(const char *fileName)
qoa_desc *ctxQoa = RL_CALLOC(1, sizeof(qoa_desc));
// TODO: QOA stream support: Init context from file
+ int result = 0;
music.ctxType = MUSIC_AUDIO_QOA;
music.ctxData = ctxQoa;
@@ -1578,11 +1579,12 @@ Music LoadMusicStreamFromMemory(const char *fileType, const unsigned char *data,
qoa_desc *ctxQoa = RL_CALLOC(1, sizeof(qoa_desc));
// TODO: Init QOA context data
+ int result = 0;
music.ctxType = MUSIC_AUDIO_QOA;
music.ctxData = ctxQoa;
- if (success)
+ if (result > 0)
{
music.stream = LoadAudioStream(ctxQoa->samplerate, 16, ctxQoa->channels);