mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-12-01 01:27:20 +01:00
add lwav as an extension for riff, to prevent looping .wavs from being improperly handled by other plugins
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@361 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
d3af300bcc
commit
2604064a8f
@ -103,6 +103,7 @@ File types supported by this version of vgmstream:
|
|||||||
- .amts (GC DSP ADPCM)
|
- .amts (GC DSP ADPCM)
|
||||||
- .svs (PS2 ADPCM)
|
- .svs (PS2 ADPCM)
|
||||||
- .wav (8/16 bit PCM)
|
- .wav (8/16 bit PCM)
|
||||||
|
- .lwav (8/16 bit PCM)
|
||||||
- .pos (loop info for .wav)
|
- .pos (loop info for .wav)
|
||||||
- .nwa (16 bit PCM)
|
- .nwa (16 bit PCM)
|
||||||
- .xss (16 bit PCM)
|
- .xss (16 bit PCM)
|
||||||
@ -129,6 +130,7 @@ File types supported by this version of vgmstream:
|
|||||||
- .rstm (PS2 ADPCM)
|
- .rstm (PS2 ADPCM)
|
||||||
- .acm (InterPlay ACM)
|
- .acm (InterPlay ACM)
|
||||||
- .sli (loop info for .ogg)
|
- .sli (loop info for .ogg)
|
||||||
|
- .psh (PS2 ADPCM)
|
||||||
|
|
||||||
Enjoy!
|
Enjoy!
|
||||||
-hcs
|
-hcs
|
||||||
|
@ -104,7 +104,8 @@ VGMSTREAM * init_vgmstream_riff(STREAMFILE *streamFile) {
|
|||||||
|
|
||||||
/* check extension, case insensitive */
|
/* check extension, case insensitive */
|
||||||
streamFile->get_name(streamFile,filename,sizeof(filename));
|
streamFile->get_name(streamFile,filename,sizeof(filename));
|
||||||
if (strcasecmp("wav",filename_extension(filename))) goto fail;
|
if (strcasecmp("wav",filename_extension(filename)) &&
|
||||||
|
strcasecmp("lwav",filename_extension(filename))) goto fail;
|
||||||
|
|
||||||
/* check header */
|
/* check header */
|
||||||
if ((uint32_t)read_32bitBE(0,streamFile)!=0x52494646) /* "RIFF" */
|
if ((uint32_t)read_32bitBE(0,streamFile)!=0x52494646) /* "RIFF" */
|
||||||
|
@ -91,6 +91,7 @@ gchar *vgmstream_exts [] = {
|
|||||||
"acm",
|
"acm",
|
||||||
"mus",
|
"mus",
|
||||||
"sli",
|
"sli",
|
||||||
|
"lwav",
|
||||||
/* terminator */
|
/* terminator */
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
@ -155,6 +155,7 @@ char * extension_list[] = {
|
|||||||
"dxh\0DXH Audio File (*.DXH)\0",
|
"dxh\0DXH Audio File (*.DXH)\0",
|
||||||
"psh\0PSH Audio File (*.PSH)\0",
|
"psh\0PSH Audio File (*.PSH)\0",
|
||||||
"sli\0SLI Audio File (*.SLI)\0",
|
"sli\0SLI Audio File (*.SLI)\0",
|
||||||
|
"lwav\0LWAV Audio File (*.LWAV)\0",
|
||||||
};
|
};
|
||||||
|
|
||||||
void about(HWND hwndParent) {
|
void about(HWND hwndParent) {
|
||||||
|
Loading…
Reference in New Issue
Block a user