aix_layout.c fixed (for compiling in MS VC++)

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@540 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
manakoAT 2008-12-27 22:51:12 +00:00
parent cd5020edf1
commit 3e63969795
2 changed files with 70 additions and 71 deletions

View File

@ -10,6 +10,7 @@ void render_vgmstream_aix(sample * buffer, int32_t sample_count, VGMSTREAM * vgm
int samples_to_do;
int samples_this_block = data->sample_counts[data->current_segment];
int current_stream;
int channels_sofar = 0;
if (vgmstream->loop_flag && vgmstream_do_loop(vgmstream)) {
data->current_segment = 1;
@ -66,7 +67,6 @@ void render_vgmstream_aix(sample * buffer, int32_t sample_count, VGMSTREAM * vgm
samples_to_do = AIX_BUFFER_SIZE/2;
}
int channels_sofar = 0;
for (current_stream = 0; current_stream < data->stream_count; current_stream++)
{
int i,j;

View File

@ -86,7 +86,6 @@ VGMSTREAM * init_vgmstream_emff_ngc(STREAMFILE *streamFile) {
int frequency;
int i;
int j;
off_t coef_table[8];
/* check extension, case insensitive */
streamFile->get_name(streamFile,filename,sizeof(filename));
@ -127,7 +126,7 @@ VGMSTREAM * init_vgmstream_emff_ngc(STREAMFILE *streamFile) {
for (i=0;i<16;i++) {
vgmstream->ch[j].adpcm_coef[i] = read_16bitBE(coef_table[j]+i*2,streamFile);
}
}
}
/* Found in Tomb Raider - Anniversary for WII */
} else if (read_32bitBE(0xCC,streamFile) > 0x0) {
off_t coef_table[8] = {0xCC,0xFA,0x128,0x156,0x184,0x1B2,0x1E0,0x20E};