mirror of
https://github.com/n64decomp/sm64
synced 2026-05-12 17:18:14 +00:00
Fix high notes occasionally not initing properly
This commit is contained in:
parent
3573b75b4b
commit
c6e85d76d0
|
|
@ -33,7 +33,7 @@ void play_notes(struct Note *notes) {
|
|||
struct Note *note = ¬es[i];
|
||||
|
||||
if (note->enabled && note->sound != NULL) {
|
||||
if (note->needsInit) {
|
||||
if (note->needsInit || ((SCHANNEL_CR(i) & SCHANNEL_ENABLE) && (note->frequency >= 2.0f) != (bool)(high_freqs & BIT(i)))) {
|
||||
const struct AudioBankSample *sample = note->sound->sample;
|
||||
const u32 loop = (sample->loop->count ? SOUND_REPEAT : SOUND_ONE_SHOT);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue