mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-24 23:10:10 +01:00
surround a few more bits with VGM_USE_VORBIS, now builds with VGM_USE_VORBIS undefined
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@235 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
af3dbd0034
commit
8393bc57d5
@ -81,6 +81,8 @@ VGMSTREAM * init_vgmstream_ps2_vpk(STREAMFILE *streamFile);
|
||||
|
||||
VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile);
|
||||
|
||||
#ifdef VGM_USE_VORBIS
|
||||
VGMSTREAM * init_vgmstream_ogg_vorbis(STREAMFILE *streamFile);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -55,7 +55,9 @@ VGMSTREAM * (*init_vgmstream_fcns[])(STREAMFILE *streamFile) = {
|
||||
init_vgmstream_caf,
|
||||
init_vgmstream_ps2_vpk,
|
||||
init_vgmstream_genh,
|
||||
#ifdef VGM_USE_VORBIS
|
||||
init_vgmstream_ogg_vorbis,
|
||||
#endif
|
||||
};
|
||||
|
||||
#define INIT_VGMSTREAM_FCNS (sizeof(init_vgmstream_fcns)/sizeof(init_vgmstream_fcns[0]))
|
||||
@ -252,7 +254,9 @@ void render_vgmstream(sample * buffer, int32_t sample_count, VGMSTREAM * vgmstre
|
||||
case layout_interleave_shortblock:
|
||||
render_vgmstream_interleave(buffer,sample_count,vgmstream);
|
||||
break;
|
||||
#ifdef VGM_USE_VORBIS
|
||||
case layout_ogg_vorbis:
|
||||
#endif
|
||||
case layout_dtk_interleave:
|
||||
case layout_none:
|
||||
render_vgmstream_nolayout(buffer,sample_count,vgmstream);
|
||||
@ -276,7 +280,9 @@ int get_vgmstream_samples_per_frame(VGMSTREAM * vgmstream) {
|
||||
case coding_PCM16LE:
|
||||
case coding_PCM16BE:
|
||||
case coding_PCM8:
|
||||
#ifdef VGM_USE_VORBIS
|
||||
case coding_ogg_vorbis:
|
||||
#endif
|
||||
return 1;
|
||||
case coding_NDS_IMA:
|
||||
return (vgmstream->interleave_block_size-4)*2;
|
||||
@ -628,9 +634,11 @@ void describe_vgmstream(VGMSTREAM * vgmstream, char * desc, int length) {
|
||||
case coding_EAXA:
|
||||
snprintf(temp,TEMPSIZE,"Electronic Arts XA Based 4-bit ADPCM");
|
||||
break;
|
||||
#ifdef VGM_USE_VORBIS
|
||||
case coding_ogg_vorbis:
|
||||
snprintf(temp,TEMPSIZE,"Vorbis");
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
snprintf(temp,TEMPSIZE,"CANNOT DECODE");
|
||||
}
|
||||
@ -667,9 +675,11 @@ void describe_vgmstream(VGMSTREAM * vgmstream, char * desc, int length) {
|
||||
case layout_caf_blocked:
|
||||
snprintf(temp,TEMPSIZE,"CAF blocked");
|
||||
break;
|
||||
#ifdef VGM_USE_VORBIS
|
||||
case layout_ogg_vorbis:
|
||||
snprintf(temp,TEMPSIZE,"Ogg");
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
snprintf(temp,TEMPSIZE,"INCONCEIVABLE");
|
||||
}
|
||||
@ -847,9 +857,11 @@ void describe_vgmstream(VGMSTREAM * vgmstream, char * desc, int length) {
|
||||
case meta_GENH:
|
||||
snprintf(temp,TEMPSIZE,"GENH Generic Header");
|
||||
break;
|
||||
#ifdef VGM_USE_VORBIS
|
||||
case meta_ogg_vorbis:
|
||||
snprintf(temp,TEMPSIZE,"Ogg Vorbis");
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
snprintf(temp,TEMPSIZE,"THEY SHOULD HAVE SENT A POET");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user