mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-31 12:23:44 +01:00
Remove .vb from ps_headerless (use TXTH)
This commit is contained in:
parent
6d43e90332
commit
a9fdb0230d
@ -567,7 +567,7 @@ static const char* extension_list[] = {
|
|||||||
"vam", //txth/reserved [Rocket Power: Beach Bandits (PS2)]
|
"vam", //txth/reserved [Rocket Power: Beach Bandits (PS2)]
|
||||||
"vas",
|
"vas",
|
||||||
"vawx",
|
"vawx",
|
||||||
"vb",
|
"vb", //txth/reserved [Tantei Jinguji Saburo: Mikan no Rupo (PS1)]
|
||||||
"vbk",
|
"vbk",
|
||||||
"vbx", //txth/reserved [THE Taxi 2 (PS2)]
|
"vbx", //txth/reserved [THE Taxi 2 (PS2)]
|
||||||
"vds",
|
"vds",
|
||||||
|
@ -33,13 +33,10 @@ VGMSTREAM * init_vgmstream_ps_headerless(STREAMFILE *streamFile) {
|
|||||||
|
|
||||||
/* checks
|
/* checks
|
||||||
* .mib: common, but many ext-less files are renamed to this.
|
* .mib: common, but many ext-less files are renamed to this.
|
||||||
* .mi4: fake .mib to force another sample rate
|
* .mi4: fake .mib to force another sample rate */
|
||||||
* .vb: Tantei Jinguuji Saburo - Mikan no Rupo (PS1)
|
|
||||||
* */
|
|
||||||
streamFile->get_name(streamFile,filename,sizeof(filename));
|
streamFile->get_name(streamFile,filename,sizeof(filename));
|
||||||
if (strcasecmp("mib",filename_extension(filename)) &&
|
if (strcasecmp("mib",filename_extension(filename)) &&
|
||||||
strcasecmp("mi4",filename_extension(filename)) &&
|
strcasecmp("mi4",filename_extension(filename)))
|
||||||
strcasecmp("vb",filename_extension(filename)))
|
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
/* test if raw PS-ADPCM */
|
/* test if raw PS-ADPCM */
|
||||||
@ -126,10 +123,6 @@ VGMSTREAM * init_vgmstream_ps_headerless(STREAMFILE *streamFile) {
|
|||||||
if(channel_count==0)
|
if(channel_count==0)
|
||||||
channel_count=1;
|
channel_count=1;
|
||||||
|
|
||||||
// force no loop
|
|
||||||
if(!strcasecmp("vb",filename_extension(filename)))
|
|
||||||
loopStart=0;
|
|
||||||
|
|
||||||
// Calc Loop Points & Interleave ...
|
// Calc Loop Points & Interleave ...
|
||||||
if(loopStartPointsCount>=2) {
|
if(loopStartPointsCount>=2) {
|
||||||
// can't get more then 0x10 loop point !
|
// can't get more then 0x10 loop point !
|
||||||
@ -191,9 +184,6 @@ VGMSTREAM * init_vgmstream_ps_headerless(STREAMFILE *streamFile) {
|
|||||||
channel_count=newChannelCount;
|
channel_count=newChannelCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcasecmp("vb",filename_extension(filename)))
|
|
||||||
channel_count=1;
|
|
||||||
|
|
||||||
|
|
||||||
/* build the VGMSTREAM */
|
/* build the VGMSTREAM */
|
||||||
vgmstream = allocate_vgmstream(channel_count,(loopEnd!=0));
|
vgmstream = allocate_vgmstream(channel_count,(loopEnd!=0));
|
||||||
@ -210,9 +200,6 @@ VGMSTREAM * init_vgmstream_ps_headerless(STREAMFILE *streamFile) {
|
|||||||
if(!strcasecmp("mi4",filename_extension(filename)))
|
if(!strcasecmp("mi4",filename_extension(filename)))
|
||||||
vgmstream->sample_rate = 48000;
|
vgmstream->sample_rate = 48000;
|
||||||
|
|
||||||
if (!strcasecmp("vb",filename_extension(filename)))
|
|
||||||
vgmstream->sample_rate = 22050;
|
|
||||||
|
|
||||||
vgmstream->num_samples = (int32_t)(fileLength/16/channel_count*28);
|
vgmstream->num_samples = (int32_t)(fileLength/16/channel_count*28);
|
||||||
|
|
||||||
if(loopEnd!=0) {
|
if(loopEnd!=0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user