Fix ifdef

This commit is contained in:
bnnm 2020-04-07 01:13:38 +02:00
parent 994ef88409
commit a839ca0c7e
2 changed files with 6 additions and 1 deletions

View File

@ -37,8 +37,9 @@ VGMSTREAM* init_vgmstream_encrypted(STREAMFILE* sf) {
temp_sf = setup_ogg_vorbis_streamfile(sf, cfg);
if (!temp_sf) goto fail;
VGM_LOG("2\n");
#ifdef VGM_USE_VORBIS
vgmstream = init_vgmstream_ogg_vorbis(temp_sf);
#endif
close_streamfile(temp_sf);
return vgmstream;
}
@ -55,7 +56,9 @@ VGMSTREAM* init_vgmstream_encrypted(STREAMFILE* sf) {
temp_sf = setup_ogg_vorbis_streamfile(sf, cfg);
if (!temp_sf) goto fail;
#ifdef VGM_USE_FFMPEG //TODO: allow MP3 without FFmpeg
vgmstream = init_vgmstream_ffmpeg(temp_sf);
#endif
close_streamfile(temp_sf);
return vgmstream;
}

View File

@ -145,7 +145,9 @@ VGMSTREAM* init_vgmstream_xnb(STREAMFILE* sf) {
if (!temp_sf) goto fail;
if (is_ogg) {
#ifdef VGM_USE_VORBIS
vgmstream = init_vgmstream_ogg_vorbis(temp_sf);
#endif
} else {
vgmstream = init_vgmstream_riff(temp_sf);
}