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
2 changes: 2 additions & 0 deletions include/z64audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#define AIBUF_LEN 0x580

#define SEQ_NUM_CHANNELS 16

typedef enum {
/* 0 */ ADSR_STATE_DISABLED,
/* 1 */ ADSR_STATE_INITIAL,
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 @@ -1765,7 +1765,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