Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audio_seqplayer.c cleanup #1274

Merged
merged 16 commits into from
Jun 21, 2022
1 change: 1 addition & 0 deletions include/z64audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#define TATUMS_PER_BEAT 48

#define IS_SEQUENCE_CHANNEL_VALID(ptr) ((u32)(ptr) != (u32)&gAudioContext.sequenceChannelNone)
#define SEQ_NUM_CHANNELS 16

#define MAX_CHANNELS_PER_BANK 3

Expand Down
2 changes: 1 addition & 1 deletion src/code/audio_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -1847,7 +1847,7 @@ s32 AudioLoad_ProcessSamplePreloads(s32 resetStatus) {

// Pop requests with isFree = true off the stack, as far as possible,
// and dispatch the next DMA.
for (;;) {
while (true) {
if (gAudioContext.preloadSampleStackTop <= 0) {
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/code/audio_playback.c
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ void Audio_NotePoolClear(NotePool* pool) {
break;
}

for (;;) {
while (true) {
cur = source->next;
if (cur == source || cur == NULL) {
break;
Expand Down
Loading