Skip to content

winmm_midi: Fix midi_write_long_event unable to send sysex correctly #16804

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

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

negativeExponent
Copy link
Contributor

@negativeExponent negativeExponent commented Jul 22, 2024

Guidelines

  1. Rebase before opening a pull request
  2. If you are sending several unrelated fixes or features, use a branch and a separate pull request for each
  3. If possible try squashing everything in a single commit. This is particularly beneficial in the case of feature merges since it allows easy bisecting when a problem arises

Description

Data size of buffer in midi_write_long_msg() has to be DWORD aligned (is that the correct term?)

Related Issues

Fix #16790
Fix libretro/px68k-libretro#164

Related Pull Requests

[Any other PRs from related repositories that might be needed for this pull request to work]

Reviewers

review before merge for confirmation/corrections:
@LibretroAdmin @zoltanvb and others

@negativeExponent negativeExponent changed the title winmm_midi: Fix midi_write_long_event unable to send sysex correctly (fix #16790) winmm_midi: Fix midi_write_long_event unable to send sysex correctly (Fix #16790) Jul 22, 2024
@negativeExponent negativeExponent changed the title winmm_midi: Fix midi_write_long_event unable to send sysex correctly (Fix #16790) winmm_midi: Fix midi_write_long_event unable to send sysex correctly (Fix https://github.com/libretro/RetroArch/issues/16790) Jul 22, 2024
@negativeExponent negativeExponent changed the title winmm_midi: Fix midi_write_long_event unable to send sysex correctly (Fix https://github.com/libretro/RetroArch/issues/16790) winmm_midi: Fix midi_write_long_event unable to send sysex correctly (Fix #16790) Jul 22, 2024
@negativeExponent negativeExponent changed the title winmm_midi: Fix midi_write_long_event unable to send sysex correctly (Fix #16790) winmm_midi: Fix midi_write_long_event unable to send sysex correctly Jul 22, 2024
@zoltanvb
Copy link
Contributor

Dword alignment makes sense, but it is not quite clear why the CI jobs would fail?

@negativeExponent
Copy link
Contributor Author

must be a CI thing. should clear on a refresh

@LibretroAdmin
Copy link
Contributor

I see something weird in this PR:

midi/drivers/winmm_midi.c → midi/drivers/winmm_midi_write_long_event

Perhaps an accidental renaming of the file which would explain why the CI jobs fail?

data size has to be DWORD aligned.

Fix libretro#16790

review before merge for confirmation/corrections:
@LibretroAdmin @zoltanvb and others
@negativeExponent
Copy link
Contributor Author

sorry about that....

its should be now corrected.

@LibretroAdmin
Copy link
Contributor

Ah, thanks. Seems like it's good to merge now.

@LibretroAdmin LibretroAdmin merged commit 240e5eb into libretro:master Jul 23, 2024
27 checks passed
Sunderland93 pushed a commit to Sunderland93/RetroArch that referenced this pull request Dec 26, 2024
…ibretro#16804)

data size has to be DWORD aligned.

Fix libretro#16790

review before merge for confirmation/corrections:
@LibretroAdmin @zoltanvb and others
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.

winmm_midi driver: Issue initializing instruments (SC-55, MT-32, GM) MIDI-out, instruments don't initialize properly
3 participants