mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-28 16:30:54 +01:00
remove unused variables, initialize uninitialized variables, provide for prototypes. generally clean up things gcc warns about
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@522 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
3a6c65c2b9
commit
eacdeb4818
@ -16,4 +16,4 @@ void filp_block_update(off_t block_offset, VGMSTREAM * vgmstream) {
|
||||
vgmstream->ch[i].offset = vgmstream->current_block_offset+0x800+(vgmstream->current_block_size*i);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,6 @@ void thp_block_update(off_t block_offset, VGMSTREAM * vgmstream) {
|
||||
int i,j;
|
||||
STREAMFILE *streamFile=vgmstream->ch[0].streamfile;
|
||||
off_t start_offset;
|
||||
off_t interleave_offset;
|
||||
int32_t nextFrameSize;
|
||||
|
||||
vgmstream->current_block_offset = block_offset;
|
||||
|
@ -26,7 +26,8 @@ VGMSTREAM * init_vgmstream_aix(STREAMFILE *streamFile) {
|
||||
int32_t sample_count;
|
||||
|
||||
int loop_flag = 0;
|
||||
int32_t loop_start_sample,loop_end_sample;
|
||||
int32_t loop_start_sample=0;
|
||||
int32_t loop_end_sample=0;
|
||||
|
||||
aix_codec_data *data = NULL;
|
||||
|
||||
|
@ -20,7 +20,6 @@ VGMSTREAM * init_vgmstream_dc_wav_dcs(STREAMFILE *streamFile) {
|
||||
int channel_count;
|
||||
int loop_flag;
|
||||
int frequency;
|
||||
int channels;
|
||||
int dataBuffer = 0;
|
||||
int Founddata = 0;
|
||||
size_t file_size;
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include "meta.h"
|
||||
#include "../layout/layout.h"
|
||||
#include "../util.h"
|
||||
|
||||
/* GSP+GSB - 2008-11-28 - manakoAT
|
||||
@ -13,7 +14,6 @@ VGMSTREAM * init_vgmstream_gsp_gsb(STREAMFILE *streamFile) {
|
||||
char filename[260];
|
||||
char filenameGSP[260];
|
||||
off_t start_offset;
|
||||
int i;
|
||||
int channel_count;
|
||||
int loop_flag;
|
||||
int header_len;
|
||||
|
@ -8,7 +8,7 @@ VGMSTREAM * init_vgmstream_musx_v004(STREAMFILE *streamFile) {
|
||||
char filename[260];
|
||||
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 */
|
||||
//int musx_version; /* 0x08 provides a "version" byte */
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
|
||||
@ -108,7 +108,7 @@ VGMSTREAM * init_vgmstream_musx_v006(STREAMFILE *streamFile) {
|
||||
char filename[260];
|
||||
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 */
|
||||
//int musx_version; /* 0x08 provides a "version" byte */
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
|
||||
@ -184,7 +184,7 @@ VGMSTREAM * init_vgmstream_musx_v010(STREAMFILE *streamFile) {
|
||||
char filename[260];
|
||||
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 */
|
||||
//int musx_version; /* 0x08 provides a "version" byte */
|
||||
int loop_flag = 0;
|
||||
int channel_count;
|
||||
|
||||
@ -258,7 +258,7 @@ VGMSTREAM * init_vgmstream_musx_v201(STREAMFILE *streamFile) {
|
||||
VGMSTREAM * vgmstream = NULL;
|
||||
char filename[260];
|
||||
off_t start_offset;
|
||||
int musx_version; /* 0x08 provides a "version" byte */
|
||||
//int musx_version; /* 0x08 provides a "version" byte */
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
int loop_detect;
|
||||
|
@ -9,7 +9,7 @@ VGMSTREAM * init_vgmstream_ps2_ads(STREAMFILE *streamFile) {
|
||||
|
||||
int loop_flag=0;
|
||||
int channel_count;
|
||||
off_t start_offset,test_offset;
|
||||
off_t start_offset;
|
||||
int i;
|
||||
|
||||
/* check extension, case insensitive */
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include "meta.h"
|
||||
#include "../layout/layout.h"
|
||||
#include "../util.h"
|
||||
|
||||
/* FILp (Resident Evil - Dead Aim) */
|
||||
|
@ -19,10 +19,9 @@ VGMSTREAM * init_vgmstream_thp(STREAMFILE *streamFile) {
|
||||
off_t componentDataOffset;
|
||||
|
||||
char thpVersion;
|
||||
char componentTypes[16];
|
||||
|
||||
int loop_flag;
|
||||
int channel_count;
|
||||
int channel_count=-1;
|
||||
int i;
|
||||
|
||||
/* check extension, case insensitive */
|
||||
|
Loading…
Reference in New Issue
Block a user