mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-28 08:20:54 +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)
|
||||
- .svs (PS2 ADPCM)
|
||||
- .wav (8/16 bit PCM)
|
||||
- .lwav (8/16 bit PCM)
|
||||
- .pos (loop info for .wav)
|
||||
- .nwa (16 bit PCM)
|
||||
- .xss (16 bit PCM)
|
||||
@ -129,6 +130,7 @@ File types supported by this version of vgmstream:
|
||||
- .rstm (PS2 ADPCM)
|
||||
- .acm (InterPlay ACM)
|
||||
- .sli (loop info for .ogg)
|
||||
- .psh (PS2 ADPCM)
|
||||
|
||||
Enjoy!
|
||||
-hcs
|
||||
|
@ -104,7 +104,8 @@ VGMSTREAM * init_vgmstream_riff(STREAMFILE *streamFile) {
|
||||
|
||||
/* check extension, case insensitive */
|
||||
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 */
|
||||
if ((uint32_t)read_32bitBE(0,streamFile)!=0x52494646) /* "RIFF" */
|
||||
|
@ -91,6 +91,7 @@ gchar *vgmstream_exts [] = {
|
||||
"acm",
|
||||
"mus",
|
||||
"sli",
|
||||
"lwav",
|
||||
/* terminator */
|
||||
NULL
|
||||
};
|
||||
|
@ -155,6 +155,7 @@ char * extension_list[] = {
|
||||
"dxh\0DXH Audio File (*.DXH)\0",
|
||||
"psh\0PSH Audio File (*.PSH)\0",
|
||||
"sli\0SLI Audio File (*.SLI)\0",
|
||||
"lwav\0LWAV Audio File (*.LWAV)\0",
|
||||
};
|
||||
|
||||
void about(HWND hwndParent) {
|
||||
|
Loading…
Reference in New Issue
Block a user