mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-18 15:54:05 +01:00
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:
parent
04a90fe2e2
commit
dd3ed4d0ef
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user