See http://hanabi.2ch.net/test/read.cgi/i4004/
1483504365/37 .
int t_s = mix_counter;
if(t_s >= (sound_tmp_samples - buffer_ptr)) t_s = sound_tmp_samples - buffer_ptr - 1;
if(config.sound_strict_rendering) {
- if(t_s <= 1) {
- mix_sound(1);
- mix_counter = 1;
- sound_touched = false;
- return;
- }
+ if(t_s < 1) t_s = 1;
+ mix_sound(t_s);
+ mix_counter = 1;
+ sound_touched = false;
+ return;
}
if((need_mix > 0) || (mix_counter >= mix_limit) || sound_touched) {
if(t_s > 0) {
}
void touch_sound(void)
{
+ if(config.sound_strict_rendering) return;
if((need_mix <= 0) && !sound_touched) {
int t_s = mix_counter;
// Do need mix_sound(remain_samples) before?