diff options
| author | Ray <[email protected]> | 2023-02-06 11:02:46 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-02-06 11:02:46 +0100 |
| commit | e187b693eaa4873a0d44d6578f44c269fd751315 (patch) | |
| tree | bf3fdca3da429e6a2e9a778f67c20d4941637d55 /src/raudio.c | |
| parent | 04ab76b88927981844aedcdeaebd8f1866a32406 (diff) | |
| download | raylib-e187b693eaa4873a0d44d6578f44c269fd751315.tar.gz raylib-e187b693eaa4873a0d44d6578f44c269fd751315.zip | |
Update raudio.c
Diffstat (limited to 'src/raudio.c')
| -rw-r--r-- | src/raudio.c | 4 |
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); |
