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