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

Added bnvib #196

Merged
merged 3 commits into from
Jul 27, 2024
Merged

Added bnvib #196

merged 3 commits into from
Jul 27, 2024

Conversation

steven11sjf
Copy link
Contributor

standard NX library format, already documented online https://switchbrew.org/wiki/BNVIB#Normal_Vibration

- standard NX library format, already documented online
LOOP = 12
LOOPWAIT = 16

BNVIB = Struct(
Copy link
Contributor

Choose a reason for hiding this comment

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

would be nice to have a link to the switchbrew wiki page here.

@Miepee Miepee enabled auto-merge July 27, 2024 11:06
@Miepee Miepee added this pull request to the merge queue Jul 27, 2024
Merged via the queue into randovania:main with commit d41dbd1 Jul 27, 2024
8 checks passed
"loop_start" / If(construct.this.vibration_type != VibrationType.NORMAL, Int32ul),
"loop_end" / If(construct.this.vibration_type != VibrationType.NORMAL, Int32ul),
"loop_wait" / If(construct.this.vibration_type == VibrationType.LOOPWAIT, Int32ul),
"data" / PrefixedArray(Int32ul, Byte)
Copy link
Contributor

Choose a reason for hiding this comment

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

Prefixed(Int32ul, GreedyBytes)

Copy link
Contributor

Choose a reason for hiding this comment

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

actually looking at the documentation more closely: "The size of a sample is 4 bytes."
this should be Prefixed(Int32ul, GreedyRange(Int32ul))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants