fix loop counter for eventstream, closes #4493
(cherry picked from commit 8f7a1367fe
)
This commit is contained in:
parent
a71ea0abc6
commit
7076e98f40
|
@ -628,11 +628,13 @@ bool EventStreamPlaybackChibi::_update(AudioMixer* p_mixer, uint64_t p_usec){
|
||||||
total_usec+=p_usec;
|
total_usec+=p_usec;
|
||||||
mixer.process_usecs(p_usec,volume,pitch_scale,tempo_scale);
|
mixer.process_usecs(p_usec,volume,pitch_scale,tempo_scale);
|
||||||
int order=player->get_current_order();
|
int order=player->get_current_order();
|
||||||
if (order<last_order && !loop) {
|
if (order<last_order) {
|
||||||
|
if (!loop) {
|
||||||
stop();
|
stop();
|
||||||
} else {
|
} else {
|
||||||
loops++;
|
loops++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
last_order=order;
|
last_order=order;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue