Skip to content

Fix issues compiling against rtmidi 6.1 - #585

Merged
cameronwhite merged 1 commit into
masterfrom
fix/rtmidi
Nov 1, 2026
Merged

cameronwhite merged 1 commit into
masterfrom
fix/rtmidi

Conversation

@cameronwhite

Copy link
Copy Markdown
Member
  • Versions 6.1 and above use the rt::midi namespace, so we set RTMIDI_USE_NAMESPACE to avoid having them also added in the global scope. To support building against older versions, we import the namespace for now in the .C files.

  • Switch MidiOutputDevice to use the pimpl idiom to hide its implementation. This is a bit simpler and avoids having to deal with the new rtmidi namespace possibly not being present for forward declarations.

- Versions 6.1 and above use the rt::midi namespace, and we set RTMIDI_USE_NAMESPACE to avoid having them also added in the global scope. To support building against older versions, we import the namespace only in the .C files.

- Switch MidiOutputDevice to use the pimpl idiom to hide its implementation. This is a bit simpler and avoids having to deal with the new rtmidi namespace for forward declarations.
@cameronwhite
cameronwhite merged commit 2b536f8 into master Nov 1, 2026
11 of 12 checks passed
@cameronwhite
cameronwhite deleted the fix/rtmidi branch November 1, 2026 14:11
cameronwhite added a commit that referenced this pull request Nov 1, 2026
RtMidi 6.1 seems to report the "dummy" API in addition to the valid Core Midi API

Related to PR #585
@sbonaime

sbonaime commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

fix #582

@cameronwhite cameronwhite linked an issue Nov 2, 2026 that may be closed by this pull request
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.

RtMidiOut issue on Macos Tahoe 26.7.1 on Apple sillicon

2 participants