1
0
Fork 0
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:
engineer124 2022-06-21 04:42:02 -04:00 committed by GitHub
parent 00b98027db
commit 5dda2f9ffc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 746 additions and 663 deletions

View file

@ -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

View file

@ -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;
}

View file

@ -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