short interleave block added to Dreamcast IDVI

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@429 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
manakoAT 2008-09-08 13:41:31 +00:00
parent 58e9832d00
commit bb30e09275
2 changed files with 12 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#include "meta.h"
#include "../util.h"
/* IDVI (Eldorado Gate Volume 3) */
/* IDVI (Eldorado Gate Volume 1-7) */
VGMSTREAM * init_vgmstream_dc_idvi(STREAMFILE *streamFile) {
VGMSTREAM * vgmstream = NULL;
char filename[260];
@ -38,12 +38,15 @@ VGMSTREAM * init_vgmstream_dc_idvi(STREAMFILE *streamFile) {
vgmstream->loop_end_sample = (get_streamfile_size(streamFile)-start_offset);
}
vgmstream->layout_type = layout_interleave;
vgmstream->interleave_block_size = 0x400;
vgmstream->interleave_block_size = 0x400;
if (channel_count > 1) {
vgmstream->interleave_smallblock_size = ((get_streamfile_size(streamFile)-start_offset)%(vgmstream->channels*vgmstream->interleave_block_size))/vgmstream->channels;
vgmstream->layout_type = layout_interleave_shortblock;
} else {
vgmstream->layout_type = layout_none;
}
vgmstream->meta_type = meta_DC_IDVI;
/* vgmstream->get_high_nibble=1; */
/* open the file for reading */
{

View File

@ -1661,6 +1661,9 @@ void describe_vgmstream(VGMSTREAM * vgmstream, char * desc, int length) {
break;
case meta_XBOX_XVAS:
snprintf(temp,TEMPSIZE,"assumed TMNT file by .xvas extension");
break;
case meta_DC_IDVI:
snprintf(temp,TEMPSIZE,"IDVI Header");
break;
default:
snprintf(temp,TEMPSIZE,"THEY SHOULD HAVE SENT A POET");