Compiler warnings

This commit is contained in:
bnnm 2020-01-12 12:34:44 +01:00
parent d7bd19cc6d
commit 4afa42bee6
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@
/* FWSE - Capcom's MT Framework V1.x sound file */
VGMSTREAM *init_vgmstream_fwse(STREAMFILE *streamFile) {
VGMSTREAM *vgmstream = NULL;
uint32_t version, file_size, buffer_offset,
uint32_t version, /*file_size,*/ buffer_offset,
channel_count, sample_count, sample_rate;
if (!check_extensions(streamFile,"fwse"))
@ -18,7 +18,7 @@ VGMSTREAM *init_vgmstream_fwse(STREAMFILE *streamFile) {
if (version != 2)
goto fail;
file_size = read_32bitLE(0x08,streamFile);
//file_size = read_32bitLE(0x08,streamFile);
buffer_offset = read_32bitLE(0x0C,streamFile);
channel_count = read_32bitLE(0x10,streamFile);

View File

@ -237,6 +237,7 @@ VGMSTREAM * init_vgmstream_vag(STREAMFILE *streamFile) {
start_offset = 0x800;
channel_count = 2;
interleave = 0x400;
loop_flag = 0;
channel_size -= ps_find_padding(streamFile, start_offset, channel_size, channel_count, interleave, 0);
channel_size = channel_size / channel_count;