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
Merged

Conversation

engineer124
Copy link
Contributor

More cleanup for the file that runs and interprets sequence instructions for the .seq files

Copy link
Collaborator

@Dragorn421 Dragorn421 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:Pepega: 📣

What is the relation between this and #1248 ?

src/code/audio_seqplayer.c Outdated Show resolved Hide resolved
src/code/audio_seqplayer.c Outdated Show resolved Hide resolved
@engineer124
Copy link
Contributor Author

engineer124 commented Jun 12, 2022

:Pepega: 📣

What is the relation between this and #1248 ?

#1248 focuses on the sequence instructions themselves, both the instruction names and as a base to think about how to document the instructions through either macros or comments

This PR focuses on the code and the various functions, and cleans up temps, spacing, minor docs, etc.

src/code/audio_seqplayer.c Outdated Show resolved Hide resolved
AudioSeq_SeqLayerProcessScriptStep5(layer, val);

if (cmd != -1) {
AudioSeq_SeqLayerProcessScriptStep5(layer, cmd);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cmd is sameSound at this point, may be worth a comment if the variable is changed to cmd

(also that -1 could be a define maybe like PROCESS_SCRIPT_CONTINUE idk 🤷)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that is weird that AudioSeq_SeqLayerProcessScriptStep4 returns sameSound (sameTunedSample) instead of a command. Yeah, defs worth a comment.

I wonder if that define should be for the "layer" interpreter, or kept to a more "general" interpreter for "sequences" and "channels" two, since there are basically 3 different languages in here. I'll look into it. Either way, the name should reflect which of the scripts it's for

@fig02 fig02 merged commit 5dda2f9 into zeldaret:master Jun 21, 2022
@engineer124 engineer124 deleted the seqplayer_cleanup branch June 21, 2022 12:41
louist103 pushed a commit to louist103/oot that referenced this pull request Jan 3, 2023
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants