From adf467789435cf6b351c0cbbfafbb1709db5e7a1 Mon Sep 17 00:00:00 2001 From: manakoAT Date: Fri, 2 Oct 2009 17:19:18 +0000 Subject: [PATCH] Flat Layout for NPSF mono files git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@707 51a99a44-fe44-0410-b1ba-c3e57ba2b86b --- src/meta/ps2_npsf.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/meta/ps2_npsf.c b/src/meta/ps2_npsf.c index 69cc4e38..e13ccaec 100644 --- a/src/meta/ps2_npsf.c +++ b/src/meta/ps2_npsf.c @@ -43,10 +43,14 @@ VGMSTREAM * init_vgmstream_ps2_npsf(STREAMFILE *streamFile) { } vgmstream->interleave_block_size = read_32bitLE(0x04,streamFile)/2; - vgmstream->layout_type = layout_interleave; 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 */ {