mirror of
https://github.com/zeldaret/oot.git
synced 2025-02-27 19:44:40 +00:00
audio_seqplayer.c cleanup (#1274)
* Audio Seqplayer Cleanup * More * Edit description * PR Suggestions * while true * Cleanup function declarations * Extra space, oops * Small fix * PR Suggestions * tatums per beat * Edit comment
This commit is contained in:
parent
00b98027db
commit
5dda2f9ffc
4 changed files with 746 additions and 663 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -1844,7 +1844,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;
|
||||
}
|
||||
|
|
|
@ -652,7 +652,7 @@ void Audio_NotePoolClear(NotePool* pool) {
|
|||
break;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
while (true) {
|
||||
cur = source->next;
|
||||
if (cur == source || cur == NULL) {
|
||||
break;
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue