.bg00 added

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@340 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
manakoAT 2008-07-18 20:53:04 +00:00
parent dee3771b88
commit e79e6f50aa
5 changed files with 8 additions and 4 deletions

View File

@ -149,5 +149,7 @@ VGMSTREAM * init_vgmstream_sfs(STREAMFILE * streamFile);
VGMSTREAM * init_vgmstream_dvi(STREAMFILE * streamFile);
VGMSTREAM * init_vgmstream_bg00(STREAMFILE * streamFile);
VGMSTREAM * init_vgmstream_kcey(STREAMFILE * streamFile);
#endif

View File

@ -2,7 +2,7 @@
#include "../util.h"
/* BG0 (from Ibara, Mushihimesama) */
VGMSTREAM * init_vgmstream_bg0(STREAMFILE *streamFile) {
VGMSTREAM * init_vgmstream_bg00(STREAMFILE *streamFile) {
VGMSTREAM * vgmstream = NULL;
char filename[260];
off_t start_offset;
@ -12,7 +12,7 @@ VGMSTREAM * init_vgmstream_bg0(STREAMFILE *streamFile) {
/* check extension, case insensitive */
streamFile->get_name(streamFile,filename,sizeof(filename));
if (strcasecmp("bg0",filename_extension(filename))) goto fail;
if (strcasecmp("bg00",filename_extension(filename))) goto fail;
/* check header */
if (read_32bitBE(0x00,streamFile) != 0x42473030) /* "BG00" */
@ -38,7 +38,7 @@ VGMSTREAM * init_vgmstream_bg0(STREAMFILE *streamFile) {
vgmstream->layout_type = layout_interleave;
vgmstream->interleave_block_size = read_32bitLE(0x10,streamFile);
vgmstream->meta_type = meta_BG0;
vgmstream->meta_type = meta_BG00;
/* open the file for reading */
{

View File

@ -89,6 +89,7 @@ VGMSTREAM * (*init_vgmstream_fcns[])(STREAMFILE *streamFile) = {
init_vgmstream_filp,
init_vgmstream_ikm,
init_vgmstream_sfs,
init_vgmstream_bg00,
init_vgmstream_dvi,
init_vgmstream_kcey,
};

View File

@ -187,7 +187,7 @@ typedef enum {
meta_FILP, /* Resident Evil - Dead Aim */
meta_IKM, /* Zwei! */
meta_SFS, /* Baroque */
meta_BG0, /* Ibara, Mushihimesama */
meta_BG00, /* Ibara, Mushihimesama */
meta_XBOX_WAVM, /* XBOX WAVM File */
meta_XBOX_RIFF, /* XBOX RIFF/WAVE File */

View File

@ -145,6 +145,7 @@ char * extension_list[] = {
"filp\0FILP Audio File (*.FILP)\0",
"ikm\0IKM Audio File (*.IKM)\0",
"sfs\0SFS Audio File (*.SFS)\0",
"bg00\0BG00 Audio File (*.BG00)\0",
"dvi\0DVI Audio File (*.DVI)\0",
"kcey\0KCEY Audio File (*.KCEY)\0",
};