Update raudio.c
This commit is contained in:
parent
04ab76b889
commit
e187b693ea
1 changed files with 3 additions and 1 deletions
|
@ -1380,6 +1380,7 @@ Music LoadMusicStream(const char *fileName)
|
||||||
qoa_desc *ctxQoa = RL_CALLOC(1, sizeof(qoa_desc));
|
qoa_desc *ctxQoa = RL_CALLOC(1, sizeof(qoa_desc));
|
||||||
|
|
||||||
// TODO: QOA stream support: Init context from file
|
// TODO: QOA stream support: Init context from file
|
||||||
|
int result = 0;
|
||||||
|
|
||||||
music.ctxType = MUSIC_AUDIO_QOA;
|
music.ctxType = MUSIC_AUDIO_QOA;
|
||||||
music.ctxData = ctxQoa;
|
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));
|
qoa_desc *ctxQoa = RL_CALLOC(1, sizeof(qoa_desc));
|
||||||
|
|
||||||
// TODO: Init QOA context data
|
// TODO: Init QOA context data
|
||||||
|
int result = 0;
|
||||||
|
|
||||||
music.ctxType = MUSIC_AUDIO_QOA;
|
music.ctxType = MUSIC_AUDIO_QOA;
|
||||||
music.ctxData = ctxQoa;
|
music.ctxData = ctxQoa;
|
||||||
|
|
||||||
if (success)
|
if (result > 0)
|
||||||
{
|
{
|
||||||
music.stream = LoadAudioStream(ctxQoa->samplerate, 16, ctxQoa->channels);
|
music.stream = LoadAudioStream(ctxQoa->samplerate, 16, ctxQoa->channels);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue