소스 검색

Merge pull request #607 from jubalh/fixmu

Fix bug in LoadMusicStream
pull/610/head
Ray 7 년 전
committed by GitHub
부모
커밋
cf021e3811
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      src/audio.c

+ 3
- 3
src/audio.c 파일 보기

@ -1437,9 +1437,6 @@ Music LoadMusicStream(const char *fileName)
if (!musicLoaded)
{
free(music);
music = NULL;
if (music->ctxType == MUSIC_AUDIO_OGG) stb_vorbis_close(music->ctxOgg);
#if defined(SUPPORT_FILEFORMAT_FLAC)
else if (music->ctxType == MUSIC_AUDIO_FLAC) drflac_free(music->ctxFlac);
@ -1454,6 +1451,9 @@ Music LoadMusicStream(const char *fileName)
else if (music->ctxType == MUSIC_MODULE_MOD) jar_mod_unload(&music->ctxMod);
#endif
free(music);
music = NULL;
TraceLog(LOG_WARNING, "[%s] Music file could not be opened", fileName);
}

불러오는 중...
취소
저장