mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 00:01:34 +11:00
Channel counts as finished if the channel position reaches the end of the effect (#463)
Fixes an issue where you could only play 8 sounds until it would stop entirely. - [x] no changelog update needed
This commit is contained in:
commit
6c7f415fb6
|
@ -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