Flat Layout for NPSF mono files

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@707 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
manakoAT 2009-10-02 17:19:18 +00:00
parent 6ce63abf2e
commit adf4677894

View File

@ -43,10 +43,14 @@ VGMSTREAM * init_vgmstream_ps2_npsf(STREAMFILE *streamFile) {
} }
vgmstream->interleave_block_size = read_32bitLE(0x04,streamFile)/2; vgmstream->interleave_block_size = read_32bitLE(0x04,streamFile)/2;
vgmstream->layout_type = layout_interleave;
vgmstream->meta_type = meta_PS2_NPSF; vgmstream->meta_type = meta_PS2_NPSF;
start_offset = (off_t)read_32bitLE(0x10,streamFile);
start_offset = (off_t)read_32bitLE(0x10,streamFile); if (vgmstream->channels == 1) {
vgmstream->layout_type = layout_none;
} else {
vgmstream->layout_type = layout_interleave;
}
/* open the file for reading by each channel */ /* open the file for reading by each channel */
{ {