mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-17 19:19:16 +01:00
Raised path length limit to 32767 characters, controlled by a global enum definition
This commit is contained in:
parent
e9b490f3b4
commit
142cfc971d
@ -39,7 +39,7 @@ class input_vgmstream {
|
||||
|
||||
private:
|
||||
service_ptr_t<file> m_file;
|
||||
char filename[260];
|
||||
pfc::string8 filename;
|
||||
t_input_open_reason currentreason;
|
||||
VGMSTREAM * vgmstream;
|
||||
|
||||
@ -62,7 +62,7 @@ class input_vgmstream {
|
||||
|
||||
short sample_buffer[OUTBUF_SIZE];
|
||||
|
||||
void getfileinfo(char *filename, char *title, int *length_in_ms, int *total_samples, int *loop_start, int *loop_end, int *sample_rate, int *channels, abort_callback & p_abort);
|
||||
void getfileinfo(const char *filename, char *title, int *length_in_ms, int *total_samples, int *loop_start, int *loop_end, int *sample_rate, int *channels, abort_callback & p_abort);
|
||||
void load_settings();
|
||||
|
||||
private:
|
||||
|
@ -155,7 +155,13 @@ static void close_foo(FOO_STREAMFILE * streamfile) {
|
||||
}
|
||||
|
||||
static void get_name_foo(FOO_STREAMFILE *streamfile,char *buffer,size_t length) {
|
||||
strcpy_s(buffer,length,streamfile->name);
|
||||
/* Most crap only cares about the filename itself */
|
||||
size_t ourlen = strlen(streamfile->name);
|
||||
if (ourlen > length) {
|
||||
if (length) strcpy(buffer, streamfile->name + ourlen - length + 1);
|
||||
} else {
|
||||
strcpy(buffer, streamfile->name);
|
||||
}
|
||||
}
|
||||
|
||||
static STREAMFILE * open_foo_streamfile_buffer_by_file(service_ptr_t<file> m_file,const char * const filename, size_t buffersize, abort_callback * p_abort) {
|
||||
|
@ -55,7 +55,7 @@ VGMSTREAM * input_vgmstream::init_vgmstream_foo(const char * const filename, abo
|
||||
void input_vgmstream::open(service_ptr_t<file> p_filehint,const char * p_path,t_input_open_reason p_reason,abort_callback & p_abort) {
|
||||
|
||||
currentreason = p_reason;
|
||||
if(p_path) strcpy(filename, p_path);
|
||||
if(p_path) filename = p_path;
|
||||
|
||||
/* KLUDGE */
|
||||
if ( !pfc::stricmp_ascii( pfc::string_extension( p_path ), "MUS" ) )
|
||||
@ -116,9 +116,8 @@ void input_vgmstream::get_info(file_info & p_info,abort_callback & p_abort ) {
|
||||
int length_in_ms=0, channels = 0, samplerate = 0;
|
||||
int total_samples = -1;
|
||||
int loop_start = -1, loop_end = -1;
|
||||
char title[256];
|
||||
|
||||
getfileinfo(filename, title, &length_in_ms, &total_samples, &loop_start, &loop_end, &samplerate, &channels, p_abort);
|
||||
getfileinfo(filename, NULL, &length_in_ms, &total_samples, &loop_start, &loop_end, &samplerate, &channels, p_abort);
|
||||
|
||||
p_info.info_set_int("samplerate", samplerate);
|
||||
p_info.info_set_int("channels", channels);
|
||||
@ -543,7 +542,7 @@ bool input_vgmstream::g_is_our_path(const char * p_path,const char * p_extension
|
||||
|
||||
|
||||
/* retrieve information on this or possibly another file */
|
||||
void input_vgmstream::getfileinfo(char *filename, char *title, int *length_in_ms, int *total_samples, int *loop_start, int *loop_end, int *sample_rate, int *channels, abort_callback & p_abort) {
|
||||
void input_vgmstream::getfileinfo(const char *filename, char *title, int *length_in_ms, int *total_samples, int *loop_start, int *loop_end, int *sample_rate, int *channels, abort_callback & p_abort) {
|
||||
|
||||
VGMSTREAM * infostream;
|
||||
if (length_in_ms)
|
||||
@ -568,7 +567,7 @@ void input_vgmstream::getfileinfo(char *filename, char *title, int *length_in_ms
|
||||
}
|
||||
if (title)
|
||||
{
|
||||
char *p=filename+strlen(filename);
|
||||
const char *p=filename+strlen(filename);
|
||||
while (*p != '\\' && p >= filename) p--;
|
||||
strcpy(title,++p);
|
||||
}
|
||||
|
@ -1 +1 @@
|
||||
#define VERSION "r1004.1"
|
||||
#define VERSION "r1004.2"
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* 2DX9 (found in beatmaniaIIDX16 - EMPRESS (Arcade) */
|
||||
VGMSTREAM * init_vgmstream_2dx9(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
|
||||
int loop_flag;
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_Cstr(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
int loop_flag;
|
||||
off_t start_offset;
|
||||
|
@ -113,7 +113,7 @@ VGMSTREAM * init_vgmstream_aax(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
STREAMFILE * streamFileAAX = NULL;
|
||||
STREAMFILE * streamFileADX = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t *segment_offset = NULL;
|
||||
off_t *segment_size = NULL;
|
||||
int32_t sample_count;
|
||||
@ -746,7 +746,7 @@ static struct offset_size_pair query_utf_data(STREAMFILE *infile, const long off
|
||||
VGMSTREAM * init_vgmstream_utf_dsp(STREAMFILE *streamFile) {
|
||||
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int table_error = 0;
|
||||
|
||||
int loop_flag = 0;
|
||||
|
@ -10,7 +10,7 @@ VGMSTREAM * init_vgmstream_acm(STREAMFILE *streamFile) {
|
||||
ACMStream *acm_stream = NULL;
|
||||
mus_acm_codec_data *data;
|
||||
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* ADS (from Gauntlet Dark Legends (GC)) */
|
||||
VGMSTREAM * init_vgmstream_ads(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
|
@ -25,7 +25,7 @@ VGMSTREAM * init_vgmstream_adx(STREAMFILE *streamFile) {
|
||||
meta_t header_type;
|
||||
int16_t coef1, coef2;
|
||||
uint16_t cutoff;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int coding_type = coding_CRI_ADX;
|
||||
uint16_t xor_start=0,xor_mult=0,xor_add=0;
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_afc(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
int loop_flag;
|
||||
const int channel_count = 2; /* .afc seems to be stereo only */
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_agsc(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
off_t header_offset;
|
||||
off_t start_offset;
|
||||
|
@ -12,7 +12,7 @@ VGMSTREAM * init_vgmstream_ahx(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
off_t stream_offset;
|
||||
size_t filesize;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int channel_count = 1;
|
||||
int loop_flag = 0;
|
||||
mpeg_codec_data *data = NULL;
|
||||
|
@ -55,7 +55,7 @@ uint32_t find_marker(STREAMFILE *streamFile, off_t MarkerChunkOffset,
|
||||
|
||||
VGMSTREAM * init_vgmstream_aifc(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
off_t file_size = -1;
|
||||
int channel_count = 0;
|
||||
|
@ -20,7 +20,7 @@ VGMSTREAM * init_vgmstream_aix(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
STREAMFILE * streamFileAIX = NULL;
|
||||
STREAMFILE * streamFileADX = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t *segment_offset = NULL;
|
||||
int32_t *samples_in_segment = NULL;
|
||||
int32_t sample_count;
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_apple_caff(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
off_t start_offset = 0;
|
||||
off_t data_size = 0;
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_ast(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
coding_t coding_type;
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_baf(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t WAVE_size,DATA_size;
|
||||
off_t start_offset;
|
||||
long sample_count;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* BGW (FF XI) */
|
||||
VGMSTREAM * init_vgmstream_bgw(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int32_t loop_start;
|
||||
|
||||
@ -74,7 +74,7 @@ fail:
|
||||
/* .spw (SEWave, PlayOnline viewer for FFXI), very similar to bgw */
|
||||
VGMSTREAM * init_vgmstream_spw(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
|
||||
int loop_flag = 0;
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_bnsf(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
off_t file_size = -1;
|
||||
uint32_t riff_size;
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_brstm(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
coding_t coding_type;
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* CAPDSP (found in Capcom games) */
|
||||
VGMSTREAM * init_vgmstream_capdsp(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* ASD - found in Miss Moonlight (DC) */
|
||||
VGMSTREAM * init_vgmstream_dc_asd(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
|
@ -12,7 +12,7 @@
|
||||
VGMSTREAM * init_vgmstream_dc_dcsw_dcs(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
STREAMFILE * streamFileDCSW = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
char filenameDCSW[260];
|
||||
int i;
|
||||
int channel_count;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* IDVI (Eldorado Gate Volume 1-7) */
|
||||
VGMSTREAM * init_vgmstream_dc_idvi(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
|
||||
int loop_flag;
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_kcey(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
|
||||
int loop_flag = 0;
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_dc_str(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag = 0;
|
||||
int interleave;
|
||||
@ -102,7 +102,7 @@ fail:
|
||||
|
||||
VGMSTREAM * init_vgmstream_dc_str_v2(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_de2(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
off_t riff_off;
|
||||
int channel_count;
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
VGMSTREAM * init_vgmstream_dmsg(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int loop_flag = 0;
|
||||
int frequency;
|
||||
int channel_count;
|
||||
|
@ -5,7 +5,7 @@
|
||||
VGMSTREAM * init_vgmstream_dsp_bdsp(STREAMFILE *streamFile) {
|
||||
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int channel_count;
|
||||
int loop_flag;
|
||||
int i;
|
||||
|
@ -9,7 +9,7 @@
|
||||
VGMSTREAM * init_vgmstream_ngc_dsp_sth_str1(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
STREAMFILE * streamFileSTR = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
char filenameSTR[260];
|
||||
int i, j;
|
||||
int channel_count;
|
||||
@ -115,7 +115,7 @@ fail:
|
||||
VGMSTREAM * init_vgmstream_ngc_dsp_sth_str2(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
STREAMFILE * streamFileSTR = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
char filenameSTR[260];
|
||||
int i, j;
|
||||
int channel_count;
|
||||
@ -221,7 +221,7 @@ fail:
|
||||
VGMSTREAM * init_vgmstream_ngc_dsp_sth_str3(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
STREAMFILE * streamFileSTR = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
char filenameSTR[260];
|
||||
int i, j;
|
||||
int channel_count;
|
||||
|
@ -136,7 +136,7 @@ void Parse_Header(STREAMFILE* streamFile,EA_STRUCT* ea, off_t offset, int length
|
||||
VGMSTREAM * init_vgmstream_ea(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
EA_STRUCT ea;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
int loop_flag=0;
|
||||
int channel_count;
|
||||
|
@ -20,7 +20,7 @@ typedef struct
|
||||
|
||||
VGMSTREAM * init_vgmstream_eacs(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int channel_count;
|
||||
int loop_flag=0;
|
||||
char little_endian=0;
|
||||
|
@ -6,7 +6,7 @@
|
||||
Legacy of Kain - Defiance, possibly more... */
|
||||
VGMSTREAM * init_vgmstream_emff_ps2(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
@ -79,7 +79,7 @@ fail:
|
||||
found in Tomb Raider Legend/Anniversary/Underworld, possibly more... */
|
||||
VGMSTREAM * init_vgmstream_emff_ngc(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_exakt_sc(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
size_t file_size;
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
/* .sfx, some .sf0 - DSP and PCM */
|
||||
VGMSTREAM * init_vgmstream_eb_sfx(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
@ -114,7 +114,7 @@ fail:
|
||||
/* .sf0 - PCM (degenerate stereo .sfx?) */
|
||||
VGMSTREAM * init_vgmstream_eb_sf0(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
long file_size;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* FFW (from Freedom Fighters [NGC]) */
|
||||
VGMSTREAM * init_vgmstream_ffw(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
|
@ -6,7 +6,7 @@
|
||||
VGMSTREAM * init_vgmstream_fsb1(STREAMFILE *streamFile) {
|
||||
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
|
||||
/* int fsb1_included_files; */
|
||||
@ -85,7 +85,7 @@ fail:
|
||||
/* FSB3.0 and FSB3.1 */
|
||||
VGMSTREAM * init_vgmstream_fsb3(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int fsb_headerlen;
|
||||
int channel_count;
|
||||
int loop_flag = 0;
|
||||
@ -230,7 +230,7 @@ fail:
|
||||
/* FSB4 */
|
||||
VGMSTREAM * init_vgmstream_fsb4(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
|
||||
int fsb4_format;
|
||||
@ -450,7 +450,7 @@ fail:
|
||||
16 byte "WAV" header which holds the filesize...*/
|
||||
VGMSTREAM * init_vgmstream_fsb4_wav(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
@ -533,7 +533,7 @@ fail:
|
||||
// FSB3 & FSB4 MPEG TEST
|
||||
VGMSTREAM * init_vgmstream_fsb_mpeg(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int channel_count, channels, encoding, loop_flag, fsb_mainheader_len, fsb_subheader_len, FSBFlag;
|
||||
long sample_rate = 0, num_samples = 0, rate;
|
||||
@ -687,7 +687,7 @@ fail:
|
||||
// FSB5 MPEG
|
||||
VGMSTREAM * init_vgmstream_fsb5_mpeg(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int channel_count, channels, encoding, loop_flag, fsb_mainheader_len, fsb_subheader_len, FSBFlag;
|
||||
long sample_rate = 0, num_samples = 0, rate;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* GCA (from Metal Slug Anthology [Wii]) */
|
||||
VGMSTREAM * init_vgmstream_gca(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag = 0;
|
||||
int channel_count = 1;
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_gcsw(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
int channel_count;
|
||||
int loop_flag;
|
||||
|
@ -25,7 +25,7 @@ VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile) {
|
||||
int32_t dsp_interleave_type;
|
||||
int32_t coef_type;
|
||||
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int coding;
|
||||
|
||||
/* check extension, case insensitive */
|
||||
|
@ -21,7 +21,7 @@ VGMSTREAM * init_vgmstream_gh3_bar(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
// don't close, this is just the source streamFile wrapped
|
||||
STREAMFILE* streamFileBAR = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
off_t ch2_start_offset;
|
||||
int loop_flag;
|
||||
|
@ -8,7 +8,7 @@ VGMSTREAM * init_vgmstream_gsp_gsb(STREAMFILE *streamFile) {
|
||||
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
STREAMFILE * streamFileGSP = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
char filenameGSP[260];
|
||||
int channel_count;
|
||||
int loop_flag;
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_halpst(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
int channel_count;
|
||||
int loop_flag = 0;
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_his(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int channel_count;
|
||||
int loop_flag = 0;
|
||||
int bps = 0;
|
||||
|
@ -7,7 +7,7 @@
|
||||
*/
|
||||
VGMSTREAM * init_vgmstream_idsp2(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
int i, j;
|
||||
@ -105,7 +105,7 @@ fail:
|
||||
- Single "IDSP" header... */
|
||||
VGMSTREAM * init_vgmstream_idsp3(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int loop_flag = 1;
|
||||
int channel_count;
|
||||
off_t start_offset;
|
||||
@ -185,7 +185,7 @@ fail:
|
||||
/* IDSP (Defender NGC) */
|
||||
VGMSTREAM * init_vgmstream_idsp4(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
off_t start_offset;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* PSND (from Crash Bandicoot Nitro Kart 2 (iOS) */
|
||||
VGMSTREAM * init_vgmstream_ios_psnd(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
|
||||
int loop_flag;
|
||||
|
@ -9,7 +9,7 @@ VGMSTREAM * init_vgmstream_ish_isd(STREAMFILE *streamFile) {
|
||||
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
STREAMFILE * streamFileISH = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
char filenameISH[260];
|
||||
int i;
|
||||
int channel_count;
|
||||
|
@ -6,7 +6,7 @@
|
||||
VGMSTREAM * init_vgmstream_ivaud(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
off_t block_table_offset;
|
||||
int block_count;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* a simple PS2 ADPCM format seen in Langrisser 3 */
|
||||
VGMSTREAM * init_vgmstream_ivb(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
off_t stream_length;
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* KRAW (from Geometry Wars - Galaxies) */
|
||||
VGMSTREAM * init_vgmstream_kraw(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_lsf_n1nj4n(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
size_t file_size;
|
||||
off_t start_offset;
|
||||
|
@ -5,7 +5,7 @@
|
||||
- Place all metas for this console here (there are just 5 games) */
|
||||
VGMSTREAM * init_vgmstream_hyperscan_kvag(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* Maxis XA - found in 'Sim City 3000' */
|
||||
VGMSTREAM * init_vgmstream_maxis_xa(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_mn_str(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
|
@ -68,7 +68,7 @@ VGMSTREAM * init_vgmstream_mp4_aac(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * init_vgmstream_mp4_aac_offset(STREAMFILE *streamFile, uint64_t start, uint64_t size) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
mp4_aac_codec_data * aac_file = ( mp4_aac_codec_data * ) calloc(1, sizeof(mp4_aac_codec_data));
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* MSVP (from PoPcap Hits Vol. 1) */
|
||||
VGMSTREAM * init_vgmstream_msvp(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* MUSC (near all Spyro games and many other using this) */
|
||||
VGMSTREAM * init_vgmstream_musc(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
off_t start_offset;
|
||||
|
@ -5,7 +5,7 @@
|
||||
/* MUSX (Version 004) --------------------------------------->*/
|
||||
VGMSTREAM * init_vgmstream_musx_v004(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
off_t start_offset;
|
||||
@ -105,7 +105,7 @@ fail:
|
||||
/* MUSX (Version 005) --------------------------------------->*/
|
||||
VGMSTREAM * init_vgmstream_musx_v005(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
off_t start_offset;
|
||||
@ -178,7 +178,7 @@ fail:
|
||||
/* MUSX (Version 006) ---------------------------------------> */
|
||||
VGMSTREAM * init_vgmstream_musx_v006(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
off_t start_offset;
|
||||
@ -268,7 +268,7 @@ fail:
|
||||
/* WII_ in Dead Space: Extraction */
|
||||
VGMSTREAM * init_vgmstream_musx_v010(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int musx_type; /* determining the decoder by strings like "PS2_", "GC__" and so on */
|
||||
//int musx_version; /* 0x08 provides a "version" byte */
|
||||
@ -437,7 +437,7 @@ fail:
|
||||
/* MUSX (Version 201) --------------------------------------->*/
|
||||
VGMSTREAM * init_vgmstream_musx_v201(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
//int musx_version; /* 0x08 provides a "version" byte */
|
||||
int loop_flag;
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_myspd(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int channel_count;
|
||||
int loop_flag = 0;
|
||||
off_t start_offset;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* ADPCM (from NAOMI/NAOMI2 Arcade games) */
|
||||
VGMSTREAM * init_vgmstream_naomi_adpcm(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* SPSD (Guilty Gear X [NAOMI GD-ROM]) */
|
||||
VGMSTREAM * init_vgmstream_naomi_spsd(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int coding;
|
||||
int loop_flag;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* HWAS (found in Spider-Man 3, Tony Hawk's Downhill Jam, possibly more...) */
|
||||
VGMSTREAM * init_vgmstream_nds_hwas(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_nds_rrds(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int channel_count;
|
||||
int loop_flag;
|
||||
off_t start_offset;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* sadl (only the Professor Layton interleaved IMA version) */
|
||||
VGMSTREAM * init_vgmstream_sadl(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
|
||||
int loop_flag;
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_nds_strm(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
coding_t coding_type;
|
||||
|
||||
@ -108,7 +108,7 @@ fail:
|
||||
/* STRM (from Final Fantasy Tactics A2 - Fuuketsu no Grimoire) */
|
||||
VGMSTREAM * init_vgmstream_nds_strm_ffta2(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
|
||||
int loop_flag;
|
||||
|
@ -5,7 +5,7 @@
|
||||
SWAV - found in Asphalt Urban GT & Asphalt Urban GT 2 */
|
||||
VGMSTREAM * init_vgmstream_nds_swav(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int codec_number;
|
||||
int channel_count;
|
||||
int loop_flag;
|
||||
|
@ -5,7 +5,7 @@
|
||||
VGMSTREAM * init_vgmstream_ngc_adpdtk(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
STREAMFILE * chstreamfile;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
size_t file_size;
|
||||
int i;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* BH2PCM (from Bio Hazard 2) */
|
||||
VGMSTREAM * init_vgmstream_ngc_bh2pcm(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int channel_count;
|
||||
int format_detect;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* BO2 (Blood Omen 2 NGC) */
|
||||
VGMSTREAM * init_vgmstream_ngc_bo2(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int loop_flag;
|
||||
int channels;
|
||||
int channel_count;
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_caf(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
// Calculate sample length ...
|
||||
int32_t num_of_samples=0;
|
||||
|
@ -6,7 +6,7 @@
|
||||
*/
|
||||
VGMSTREAM * init_vgmstream_ngc_dsp_konami(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
int i, j;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* MPDS - found in Big Air Freestyle, Terminator 3 (no coeffs), etc */
|
||||
VGMSTREAM * init_vgmstream_ngc_dsp_mpds(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
int ch1_start=-1, ch2_start=-1;
|
||||
|
@ -72,7 +72,7 @@ static int read_dsp_header(struct dsp_header *header, off_t offset, STREAMFILE *
|
||||
|
||||
VGMSTREAM * init_vgmstream_ngc_dsp_std(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
struct dsp_header header;
|
||||
const off_t start_offset = 0x60;
|
||||
@ -181,7 +181,7 @@ fail:
|
||||
* Cubivore calls that into question. */
|
||||
VGMSTREAM * init_vgmstream_ngc_dsp_stm(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
struct dsp_header ch0_header, ch1_header;
|
||||
int i;
|
||||
@ -348,7 +348,7 @@ fail:
|
||||
|
||||
VGMSTREAM * init_vgmstream_ngc_mpdsp(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
struct dsp_header header;
|
||||
const off_t start_offset = 0x60;
|
||||
@ -425,7 +425,7 @@ fail:
|
||||
*/
|
||||
VGMSTREAM * init_vgmstream_ngc_str(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
const off_t start_offset = 0x60;
|
||||
int i;
|
||||
@ -486,7 +486,7 @@ fail:
|
||||
|
||||
VGMSTREAM * init_vgmstream_ngc_dsp_std_int(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
const off_t start_offset = 0xc0;
|
||||
off_t interleave;
|
||||
@ -599,7 +599,7 @@ fail:
|
||||
/* sadb - .SAD files, two standard DSP headers */
|
||||
VGMSTREAM * init_vgmstream_sadb(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
off_t start_offset;
|
||||
off_t interleave;
|
||||
@ -715,7 +715,7 @@ fail:
|
||||
/* AMTS - .amts files */
|
||||
VGMSTREAM * init_vgmstream_amts(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
off_t start_offset;
|
||||
off_t interleave;
|
||||
@ -833,7 +833,7 @@ fail:
|
||||
|
||||
VGMSTREAM * init_vgmstream_wsi(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
struct dsp_header header[2];
|
||||
off_t start_offset[2];
|
||||
|
||||
@ -1009,7 +1009,7 @@ fail:
|
||||
/* SWD (found in Conflict - Desert Storm 1 & 2 */
|
||||
VGMSTREAM * init_vgmstream_ngc_swd(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
off_t interleave;
|
||||
|
||||
@ -1125,7 +1125,7 @@ fail:
|
||||
The Chronicles of Narnia - Prince Caspian (Wii) */
|
||||
VGMSTREAM * init_vgmstream_wii_idsp(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
off_t interleave;
|
||||
struct dsp_header ch0_header,ch1_header;
|
||||
@ -1248,7 +1248,7 @@ fail:
|
||||
/* found in Phantom Brave Wii */
|
||||
VGMSTREAM * init_vgmstream_wii_wsd(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
off_t channel_1_start, channel_2_start, channel_1_size, channel_2_size;
|
||||
|
||||
@ -1370,7 +1370,7 @@ fail:
|
||||
/* .ddsp files, two DSP files stuck together, without additional header */
|
||||
VGMSTREAM * init_vgmstream_dsp_ddsp(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
off_t channel_1_start, channel_2_start, channel_1_size, channel_2_size;
|
||||
|
||||
@ -1492,7 +1492,7 @@ fail:
|
||||
/* .was files, DSP file(s), with additional iSWS header */
|
||||
VGMSTREAM * init_vgmstream_wii_was(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
struct dsp_header ch0_header,ch1_header;
|
||||
off_t ch1_header_start, ch2_header_start, ch1_start, ch2_start;
|
||||
int channel_count;
|
||||
@ -1679,7 +1679,7 @@ fail:
|
||||
/* .str found in Micro Machines, Superman: Shadow of Apokolips */
|
||||
VGMSTREAM * init_vgmstream_dsp_str_ig(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
struct dsp_header ch0_header,ch1_header;
|
||||
off_t ch1_header_start, ch2_header_start, ch1_start, ch2_start;
|
||||
int channel_count;
|
||||
@ -1791,7 +1791,7 @@ fail:
|
||||
always 2 channels, and an interleave of 0x8 */
|
||||
VGMSTREAM * init_vgmstream_dsp_xiii(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
struct dsp_header ch0_header,ch1_header;
|
||||
off_t ch1_header_start, ch2_header_start, ch1_start, ch2_start;
|
||||
int channel_count;
|
||||
@ -1902,7 +1902,7 @@ fail:
|
||||
/* .ndp found in Vertigo (WII) */
|
||||
VGMSTREAM * init_vgmstream_wii_ndp(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
struct dsp_header ch0_header,ch1_header;
|
||||
off_t ch1_header_start, ch2_header_start, ch1_start, ch2_start;
|
||||
int channel_count;
|
||||
@ -2020,7 +2020,7 @@ fail:
|
||||
/* found in "Cabelas" games, always stereo, looped and an interleave of 0x10 bytes */
|
||||
VGMSTREAM * init_vgmstream_dsp_cabelas(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
struct dsp_header ch0_header,ch1_header;
|
||||
off_t ch1_header_start, ch2_header_start, ch1_start, ch2_start;
|
||||
int channel_count;
|
||||
@ -2119,7 +2119,7 @@ fail:
|
||||
/* dual dsp header with additional "AAAp" header, found in Vexx (NGC) and Turok: Evolution (NGC) */
|
||||
VGMSTREAM * init_vgmstream_ngc_dsp_aaap(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
struct dsp_header ch0_header,ch1_header;
|
||||
off_t ch1_header_start, ch2_header_start, ch1_start, ch2_start;
|
||||
int channel_count;
|
||||
@ -2234,7 +2234,7 @@ fail:
|
||||
/* found in Sengoku Basara 3 Wii */
|
||||
VGMSTREAM * init_vgmstream_dsp_dspw(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
off_t channel_1_start, channel_2_start;
|
||||
|
||||
@ -2349,7 +2349,7 @@ fail:
|
||||
/* dual dsp header with additional "iadp" header, found in Dr. Muto (NGC) */
|
||||
VGMSTREAM * init_vgmstream_ngc_dsp_iadp(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
struct dsp_header ch0_header,ch1_header;
|
||||
off_t ch1_header_start, ch2_header_start, ch1_start, ch2_start;
|
||||
int channel_count;
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_dsp_ygo(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
off_t start_offset;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* STR (Final Fantasy: Crystal Chronicles) */
|
||||
VGMSTREAM * init_vgmstream_ngc_ffcc_str(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* GCUB - found in 'Sega Soccer Slam' */
|
||||
VGMSTREAM * init_vgmstream_ngc_gcub(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* LPS (found in Rave Master (Groove Adventure Rave)(GC) */
|
||||
VGMSTREAM * init_vgmstream_ngc_lps(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_ngc_nst_dsp(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* PDT - Custom Generated File (Mario Party) */
|
||||
VGMSTREAM * init_vgmstream_ngc_pdt(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
off_t start_offset;
|
||||
|
@ -10,7 +10,7 @@ VGMSTREAM * init_vgmstream_ngc_sck_dsp(STREAMFILE *streamFile) {
|
||||
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
STREAMFILE * streamFileDSP = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
char filenameDSP[260];
|
||||
|
||||
int i;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* SSM (Golden Gashbell Full Power GC) */
|
||||
VGMSTREAM * init_vgmstream_ngc_ssm(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* TYDSP (Ty - The Tasmanian Tiger) */
|
||||
VGMSTREAM * init_vgmstream_ngc_tydsp(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
|
@ -37,7 +37,7 @@ const short wad_coef[16] =
|
||||
/* Note: A "Flat Layout" has no interleave */
|
||||
VGMSTREAM * init_vgmstream_waa_wac_wad_wam(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int i;
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* YMF (WWE WrestleMania X8) */
|
||||
VGMSTREAM * init_vgmstream_ngc_ymf(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* NGCA (from GoldenEye 007) */
|
||||
VGMSTREAM * init_vgmstream_ngca(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
|
||||
int loop_flag;
|
||||
|
@ -6,7 +6,7 @@
|
||||
/* VAG (from Ridge Racer 7) */
|
||||
VGMSTREAM * init_vgmstream_nub_vag(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
|
||||
int loop_flag;
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_nwa(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int i;
|
||||
int channel_count;
|
||||
int loop_flag = 0;
|
||||
|
@ -171,7 +171,7 @@ static int close_func(void * datasource) {
|
||||
/* Ogg Vorbis, by way of libvorbisfile */
|
||||
|
||||
VGMSTREAM * init_vgmstream_ogg_vorbis(STREAMFILE *streamFile) {
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
ov_callbacks callbacks;
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_p3d(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t parse_offset;
|
||||
off_t start_offset;
|
||||
size_t file_size;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* ADP (from Balls of Steel) */
|
||||
VGMSTREAM * init_vgmstream_bos_adp(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_pc_mxst(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
int loop_flag=0;
|
||||
int bits_per_sample;
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_pc_smp(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
int channel_count;
|
||||
off_t start_offset;
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
VGMSTREAM * init_vgmstream_pc_snds(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
size_t file_size;
|
||||
int i;
|
||||
|
@ -8,7 +8,7 @@ they are actually soundpacks, but the audio data is just streamed as one big str
|
||||
VGMSTREAM * init_vgmstream_sab(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
STREAMFILE* sob = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int i;
|
||||
int loop_flag, channel_count, numSounds;
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
VGMSTREAM * init_vgmstream_pcm_scd(STREAMFILE *streamFile) {
|
||||
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
|
||||
int loop_flag;
|
||||
@ -69,7 +69,7 @@ fail:
|
||||
*/
|
||||
VGMSTREAM * init_vgmstream_pcm_ps2(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
|
@ -4,7 +4,7 @@
|
||||
/* PONA (from Policenauts [3DO]) */
|
||||
VGMSTREAM * init_vgmstream_pona_3do(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
@ -67,7 +67,7 @@ fail:
|
||||
/* PONA (from Policenauts [PSX]) */
|
||||
VGMSTREAM * init_vgmstream_pona_psx(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
off_t start_offset;
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
|
@ -14,7 +14,7 @@ VGMSTREAM * init_vgmstream_pos(STREAMFILE *streamFile) {
|
||||
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
STREAMFILE * streamFileWAV = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
char filenameWAV[260];
|
||||
|
||||
int i;
|
||||
|
@ -9,7 +9,7 @@
|
||||
VGMSTREAM * init_vgmstream_ps2_2pfs(STREAMFILE *streamFile)
|
||||
{
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
|
||||
size_t fileLength;
|
||||
off_t readOffset = 0;
|
||||
|
@ -5,7 +5,7 @@
|
||||
/* WAD (from The golden Compass) */
|
||||
VGMSTREAM * init_vgmstream_ps2_adm(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
char filename[PATH_LIMIT];
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
int i;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user