Remove fake format .ffw (use .txth)

This commit is contained in:
bnnm 2024-07-21 18:25:50 +02:00
parent c701412dca
commit 60676753ba
8 changed files with 2 additions and 84 deletions

View File

@ -785,10 +785,6 @@ different internally (encrypted, different versions, etc) and not always can be
- Electronic Arts SWVR header [*EA_SWVR*] - Electronic Arts SWVR header [*EA_SWVR*]
- *ea_swvr*: `.stream .str` - *ea_swvr*: `.stream .str`
- Codecs: PSX NGC_DSP PCM8_U_int - Codecs: PSX NGC_DSP PCM8_U_int
- **ps2_b1s.c**
- B1S header [*PS2_B1S*]
- *ps2_b1s*: `.b1s`
- Codecs: PSX
- **lpcm_shade.c** - **lpcm_shade.c**
- Shade LPCM header [*LPCM_SHADE*] - Shade LPCM header [*LPCM_SHADE*]
- *lpcm_shade*: `.w .lpcm` - *lpcm_shade*: `.w .lpcm`
@ -805,10 +801,6 @@ different internally (encrypted, different versions, etc) and not always can be
- Guitar Hero III Mobile .bar [*GH3_BAR*] - Guitar Hero III Mobile .bar [*GH3_BAR*]
- *bar*: `.bar` - *bar*: `.bar`
- Codecs: IMA - Codecs: IMA
- **ffw.c**
- Freedom Fighters BGM header [*FFW*]
- *ffw*: `.ffw`
- Codecs: PCM16BE
- **jstm.c** - **jstm.c**
- JSTM Header [*PS2_JSTM*] - JSTM Header [*PS2_JSTM*]
- *jstm*: `.stm .jstm` - *jstm*: `.stm .jstm`
@ -1206,9 +1198,9 @@ different internally (encrypted, different versions, etc) and not always can be
- Subfiles: *vag riff* - Subfiles: *vag riff*
- *sps_n1_segmented*: `.at9 .nlsd` - *sps_n1_segmented*: `.at9 .nlsd`
- Subfiles: *ogg_vorbis opus_std* - Subfiles: *ogg_vorbis opus_std*
- **atx.c** - **apa3.c**
- (container) - (container)
- *atx*: `.atx + .(external)` - *apa3*: `.atx`
- Subfiles: *riff* - Subfiles: *riff*
- **sqex_sead.c** - **sqex_sead.c**
- Square Enix SAB header [*SQEX_SAB*] - Square Enix SAB header [*SQEX_SAB*]

View File

@ -190,7 +190,6 @@ static const char* extension_list[] = {
"fag", "fag",
"fcb", //FFmpeg/not parsed (BINK AUDIO) "fcb", //FFmpeg/not parsed (BINK AUDIO)
"fda", "fda",
"ffw",
"filp", "filp",
"fish", "fish",
//"flac", //common //"flac", //common
@ -1211,7 +1210,6 @@ static const meta_info meta_info_list[] = {
{meta_PS2_VMS, "VMS Header"}, {meta_PS2_VMS, "VMS Header"},
{meta_XAU, "XPEC XAU header"}, {meta_XAU, "XPEC XAU header"},
{meta_GH3_BAR, "Guitar Hero III Mobile .bar"}, {meta_GH3_BAR, "Guitar Hero III Mobile .bar"},
{meta_FFW, "Freedom Fighters BGM header"},
{meta_DSP_DSPW, "Capcom DSPW header"}, {meta_DSP_DSPW, "Capcom DSPW header"},
{meta_PS2_JSTM, "JSTM Header"}, {meta_PS2_JSTM, "JSTM Header"},
{meta_XVAG, "Sony XVAG header"}, {meta_XVAG, "Sony XVAG header"},

View File

@ -480,7 +480,6 @@
<ClCompile Include="meta\fda.c" /> <ClCompile Include="meta\fda.c" />
<ClCompile Include="meta\ffdl.c" /> <ClCompile Include="meta\ffdl.c" />
<ClCompile Include="meta\ffmpeg.c" /> <ClCompile Include="meta\ffmpeg.c" />
<ClCompile Include="meta\ffw.c" />
<ClCompile Include="meta\filp.c" /> <ClCompile Include="meta\filp.c" />
<ClCompile Include="meta\flx.c" /> <ClCompile Include="meta\flx.c" />
<ClCompile Include="meta\fsb.c" /> <ClCompile Include="meta\fsb.c" />

View File

@ -1270,9 +1270,6 @@
<ClCompile Include="meta\ffmpeg.c"> <ClCompile Include="meta\ffmpeg.c">
<Filter>meta\Source Files</Filter> <Filter>meta\Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="meta\ffw.c">
<Filter>meta\Source Files</Filter>
</ClCompile>
<ClCompile Include="meta\filp.c"> <ClCompile Include="meta\filp.c">
<Filter>meta\Source Files</Filter> <Filter>meta\Source Files</Filter>
</ClCompile> </ClCompile>

View File

@ -1,64 +0,0 @@
#include "meta.h"
#include "../util.h"
/* FFW (from Freedom Fighters [NGC]) */
VGMSTREAM * init_vgmstream_ffw(STREAMFILE *streamFile) {
VGMSTREAM * vgmstream = NULL;
char filename[PATH_LIMIT];
off_t start_offset;
int loop_flag = 0;
int channel_count;
/* check extension, case insensitive */
streamFile->get_name(streamFile,filename,sizeof(filename));
if (strcasecmp("ffw",filename_extension(filename))) goto fail;
loop_flag = 0;
channel_count = read_32bitLE(0x11C,streamFile);
/* build the VGMSTREAM */
vgmstream = allocate_vgmstream(channel_count,loop_flag);
if (!vgmstream) goto fail;
/* fill in the vital statistics */
start_offset = 0x130;
vgmstream->channels = channel_count;
vgmstream->sample_rate = read_32bitLE(0x10C,streamFile);
vgmstream->coding_type = coding_PCM16BE;
vgmstream->num_samples = (get_streamfile_size(streamFile)-start_offset)/2/channel_count;
if (channel_count == 1)
{
vgmstream->layout_type = layout_none;
}
else
{
vgmstream->layout_type = layout_interleave;
vgmstream->interleave_block_size = 0x10000;
}
vgmstream->meta_type = meta_FFW;
/* open the file for reading */
{
int i;
STREAMFILE * file;
file = streamFile->open(streamFile,filename,STREAMFILE_DEFAULT_BUFFER_SIZE);
if (!file) goto fail;
for (i=0;i<channel_count;i++) {
vgmstream->ch[i].streamfile = file;
vgmstream->ch[i].channel_start_offset=
vgmstream->ch[i].offset=start_offset+
vgmstream->interleave_block_size*i;
}
}
return vgmstream;
/* clean up anything we may have opened */
fail:
if (vgmstream) close_vgmstream(vgmstream);
return NULL;
}

View File

@ -463,8 +463,6 @@ VGMSTREAM * init_vgmstream_xau(STREAMFILE* streamFile);
VGMSTREAM * init_vgmstream_bar(STREAMFILE* streamFile); VGMSTREAM * init_vgmstream_bar(STREAMFILE* streamFile);
VGMSTREAM * init_vgmstream_ffw(STREAMFILE* streamFile);
VGMSTREAM * init_vgmstream_jstm(STREAMFILE* streamFile); VGMSTREAM * init_vgmstream_jstm(STREAMFILE* streamFile);
VGMSTREAM * init_vgmstream_xvag(STREAMFILE* streamFile); VGMSTREAM * init_vgmstream_xvag(STREAMFILE* streamFile);

View File

@ -212,7 +212,6 @@ init_vgmstream_t init_vgmstream_functions[] = {
init_vgmstream_ps2_vms, init_vgmstream_ps2_vms,
init_vgmstream_xau, init_vgmstream_xau,
init_vgmstream_bar, init_vgmstream_bar,
init_vgmstream_ffw,
init_vgmstream_dsp_dspw, init_vgmstream_dsp_dspw,
init_vgmstream_jstm, init_vgmstream_jstm,
init_vgmstream_xvag, init_vgmstream_xvag,

View File

@ -478,7 +478,6 @@ typedef enum {
meta_PS2_VMS, /* Autobahn Raser - Police Madness */ meta_PS2_VMS, /* Autobahn Raser - Police Madness */
meta_XAU, /* XPEC Entertainment (Beat Down (PS2 Xbox), Spectral Force Chronicle (PS2)) */ meta_XAU, /* XPEC Entertainment (Beat Down (PS2 Xbox), Spectral Force Chronicle (PS2)) */
meta_GH3_BAR, /* Guitar Hero III Mobile .bar */ meta_GH3_BAR, /* Guitar Hero III Mobile .bar */
meta_FFW, /* Freedom Fighters [NGC] */
meta_DSP_DSPW, /* Sengoku Basara 3 [WII] */ meta_DSP_DSPW, /* Sengoku Basara 3 [WII] */
meta_PS2_JSTM, /* Tantei Jinguji Saburo - Kind of Blue (PS2) */ meta_PS2_JSTM, /* Tantei Jinguji Saburo - Kind of Blue (PS2) */
meta_SQEX_SCD, /* Square-Enix SCD */ meta_SQEX_SCD, /* Square-Enix SCD */