mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-12 09:03:10 +01:00
Added looping for MPEG FSB (WIP)
git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@852 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
parent
bcbfeaac14
commit
775dc7d72a
@ -398,7 +398,12 @@ VGMSTREAM * init_vgmstream_fsb_mpeg(STREAMFILE *streamFile) {
|
|||||||
if (mp3ID != 0xFF)
|
if (mp3ID != 0xFF)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
|
/* Still WIP */
|
||||||
|
if (read_32bitBE(0x80,streamFile)==0x53594E43)
|
||||||
|
loop_flag = 1;
|
||||||
|
else
|
||||||
loop_flag = 0;
|
loop_flag = 0;
|
||||||
|
|
||||||
num_samples = (read_32bitLE(0x5C,streamFile));
|
num_samples = (read_32bitLE(0x5C,streamFile));
|
||||||
|
|
||||||
#ifdef VGM_USE_MPEG
|
#ifdef VGM_USE_MPEG
|
||||||
@ -421,6 +426,12 @@ VGMSTREAM * init_vgmstream_fsb_mpeg(STREAMFILE *streamFile) {
|
|||||||
vgmstream->sample_rate = sample_rate;
|
vgmstream->sample_rate = sample_rate;
|
||||||
vgmstream->num_samples = num_samples;
|
vgmstream->num_samples = num_samples;
|
||||||
vgmstream->channels = channel_count;
|
vgmstream->channels = channel_count;
|
||||||
|
|
||||||
|
/* Still WIP */
|
||||||
|
if (loop_flag) {
|
||||||
|
vgmstream->loop_start_sample = read_32bitLE(0x58,streamFile);
|
||||||
|
vgmstream->loop_end_sample = read_32bitLE(0x5c,streamFile);
|
||||||
|
}
|
||||||
vgmstream->meta_type = meta_FSB_MPEG;
|
vgmstream->meta_type = meta_FSB_MPEG;
|
||||||
|
|
||||||
#ifdef VGM_USE_MPEG
|
#ifdef VGM_USE_MPEG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user