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

Fix coremidi device index issues #92256

Closed
wants to merge 7 commits into from

Conversation

ramdor
Copy link
Contributor

@ramdor ramdor commented May 22, 2024

related to #86620

Fixes the device property of the InputEventMIDI being corrupt when using coremidi

Previously it was passing the pointer to i, which would be out of scope when events came in to ::read. We actually need to use the void * to hold the value of i, not a reference to i. Using reinterpret to overcome platform issues. NOTE : not tested as no suitable build environment here

previously it was passing the pointer to i, which would be out of scope when events came in to ::read. We actually need to use the void *  to hold the value of i, not a reference to i. Using reinterpret to overcome platform issues.  NOTE :  not tested as no suitable build environment here
@ramdor ramdor requested a review from a team as a code owner May 22, 2024 14:10
@Chaosus Chaosus added this to the 4.3 milestone May 22, 2024
small tweak for possible loss of data warning
@akien-mga akien-mga changed the title fix for coremidi device index issues Fix coremidi device index issues May 22, 2024
@akien-mga akien-mga requested a review from a team May 22, 2024 15:19
remove casts from loop
@ramdor
Copy link
Contributor Author

ramdor commented May 29, 2024

Anyone able to review this? I would love this to be in an upcoming dev snapshot/beta release as this issue is holding up a project here.

@ramdor
Copy link
Contributor Author

ramdor commented Jun 27, 2024

probably not required now due to #90485. Closing.

@ramdor ramdor closed this Jun 27, 2024
@AThousandShips AThousandShips removed this from the 4.3 milestone Jun 27, 2024
@ramdor ramdor deleted the coremidi-device_index-fix branch June 27, 2024 09:11
@franciscod
Copy link

Thanks for fixing this, even though it was eventually merged from another PR.

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.

4 participants