mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Channel counts as finished if the channel position reaches the end of the effect
This commit is contained in:
parent
b80c85f1d9
commit
9445a57f48
|
@ -538,11 +538,11 @@ impl MixerBuffer {
|
|||
(false, true) => call_mono_fn!(agb_rs__mixer_add_mono_loop),
|
||||
(true, false) => {
|
||||
call_mono_fn!(agb_rs__mixer_add_mono_first);
|
||||
channel.is_done = channel.pos > channel_len;
|
||||
channel.is_done = channel.pos >= channel_len;
|
||||
}
|
||||
(false, false) => {
|
||||
call_mono_fn!(agb_rs__mixer_add_mono);
|
||||
channel.is_done = channel.pos > channel_len;
|
||||
channel.is_done = channel.pos >= channel_len;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue