mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-17 23:36:41 +01:00
Fix C99-ism that MSVC 2010 doesn't like.
This commit is contained in:
parent
afe81ca836
commit
8ef18d71ee
@ -377,11 +377,12 @@ void decode_vag_adpcm_configurable(VGMSTREAMCHANNEL * stream, sample * outbuf, i
|
||||
|
||||
int i, sample_count, bytes_per_frame, samples_per_frame;
|
||||
const int header_size = 1;
|
||||
int framesin;
|
||||
|
||||
bytes_per_frame = frame_size - header_size;
|
||||
samples_per_frame = bytes_per_frame * 2;
|
||||
|
||||
int framesin = first_sample / samples_per_frame;
|
||||
framesin = first_sample / samples_per_frame;
|
||||
|
||||
/* 1 byte header: predictor = 1st, shift = 2nd */
|
||||
byte = (uint8_t)read_8bit(stream->offset+framesin*frame_size+0,stream->streamfile);
|
||||
|
Loading…
x
Reference in New Issue
Block a user