Fix segmented .wave kbps

This commit is contained in:
bnnm 2019-04-14 21:37:28 +02:00
parent 6396886e60
commit 0072f8c0b5

View File

@ -204,6 +204,8 @@ VGMSTREAM * init_vgmstream_wave_segmented(STREAMFILE *streamFile) {
vgmstream->loop_end_sample = loop_end_sample;
vgmstream->meta_type = meta_WAVE_segmented;
vgmstream->stream_size = get_streamfile_size(streamFile); /* wrong kbps otherwise */
/* .wave can mix codecs, usually first segment is a small ADPCM section) */
vgmstream->coding_type = (segment_count == 1 ? data->segments[0]->coding_type : data->segments[1]->coding_type);
vgmstream->layout_type = layout_segmented;