fix mpeg loop (I think) and disable gapless playback in mpg123 so it doesn't throw out samples

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@300 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2008-07-10 14:37:09 +00:00
parent 04a90fe2e2
commit dd3ed4d0ef
2 changed files with 4 additions and 2 deletions

View File

@ -226,6 +226,8 @@ VGMSTREAM * init_vgmstream_genh(STREAMFILE *streamFile) {
goto mpeg_fail;
}
mpg123_param(data->m,MPG123_REMOVE_FLAGS,MPG123_GAPLESS,0.0);
if (mpg123_open_feed(data->m)!=MPG123_OK) {
goto mpeg_fail;
}

View File

@ -673,8 +673,8 @@ int vgmstream_do_loop(VGMSTREAM * vgmstream) {
mpg123_feedseek(data->m,vgmstream->loop_sample,
SEEK_SET,&input_offset);
vgmstream->ch[0].offset =
vgmstream->ch[0].channel_start_offset + input_offset;
vgmstream->loop_ch[0].offset =
vgmstream->loop_ch[0].channel_start_offset + input_offset;
data->buffer_full = data->buffer_used = 0;
}
#endif