Minor tweaks

This commit is contained in:
bnnm 2019-09-15 14:58:44 +02:00
parent b1f03eaa6d
commit 4602db9d64
3 changed files with 3 additions and 1 deletions

View File

@ -74,6 +74,7 @@ Custom STREAMFILEs wrapping base STREAMFILEs may be used for complex I/O cases:
- data needs decryption (`io_streamfile`) - data needs decryption (`io_streamfile`)
- data must be expanded/reduced on the fly for codecs that are not easy to feed chunked data (`io_streamfile`) - data must be expanded/reduced on the fly for codecs that are not easy to feed chunked data (`io_streamfile`)
- data is divided in multiple physical files, but must be read as a single (`multifile_streamfile`) - data is divided in multiple physical files, but must be read as a single (`multifile_streamfile`)
Certain metas combine those streamfiles together with special layouts to support very complex cases, that would require massive changes in vgmstream to support in a cleaner (possible undesirable) way. Certain metas combine those streamfiles together with special layouts to support very complex cases, that would require massive changes in vgmstream to support in a cleaner (possible undesirable) way.

View File

@ -1,7 +1,7 @@
#include "meta.h" #include "meta.h"
/* BMP - from Jubeat Clan (AC) */ /* BMP - from Jubeat series (AC) */
VGMSTREAM * init_vgmstream_bmp_konami(STREAMFILE *streamFile) { VGMSTREAM * init_vgmstream_bmp_konami(STREAMFILE *streamFile) {
VGMSTREAM * vgmstream = NULL; VGMSTREAM * vgmstream = NULL;
off_t start_offset; off_t start_offset;

View File

@ -169,6 +169,7 @@ VGMSTREAM * init_vgmstream_nub(STREAMFILE *streamFile) {
vgmstream = init_vgmstream_function(temp_streamFile); vgmstream = init_vgmstream_function(temp_streamFile);
if (!vgmstream) goto fail; if (!vgmstream) goto fail;
vgmstream->stream_size = get_streamfile_size(temp_streamFile);
vgmstream->num_streams = total_subsongs; vgmstream->num_streams = total_subsongs;
if (name[0] != '\0') if (name[0] != '\0')
strcpy(vgmstream->stream_name, name); strcpy(vgmstream->stream_name, name);