Fix TXTP 'ignore fade' not working properly in winamp/foobar

This commit is contained in:
bnnm 2019-09-26 00:13:29 +02:00
parent 6272e4f3d9
commit a30e28cb94
2 changed files with 2 additions and 2 deletions

View File

@ -601,12 +601,12 @@ void input_vgmstream::apply_config(VGMSTREAM * vgmstream, foobar_song_config *cu
}
if (current->song_ignore_loop) {
vgmstream_force_loop(vgmstream, 0, 0,0);
current->song_fade_time = 0;
}
/* loop N times, but also play stream end instead of fading out */
if (current->song_loop_count > 0 && current->song_ignore_fade) {
vgmstream_set_loop_target(vgmstream, (int)current->song_loop_count);
current->song_fade_time = 0; /* force no fade */
}
}

View File

@ -993,12 +993,12 @@ static void apply_config(VGMSTREAM * vgmstream, winamp_song_config *current) {
}
if (current->song_ignore_loop) {
vgmstream_force_loop(vgmstream, 0, 0,0);
current->song_fade_time = 0;
}
/* loop N times, but also play stream end instead of fading out */
if (current->song_loop_count > 0 && current->song_ignore_fade) {
vgmstream_set_loop_target(vgmstream, (int)current->song_loop_count);
current->song_fade_time = 0; /* force no fade */
}
}