Skip to content

Fix rtmidi import problem - #583

Closed
sbonaime wants to merge 5 commits into
powertab:masterfrom
sbonaime:clean-branch
Closed

sbonaime wants to merge 5 commits into
powertab:masterfrom
sbonaime:clean-branch

Conversation

@sbonaime

Copy link
Copy Markdown
Contributor

Description of Change(s)

Fixes Issue(s)

#582

Copilot AI balanced review requested due to automatic review settings October 21, 2026 07:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The unconditional alias breaks compatibility with RtMidi 4.0.0, still fetched by default on Windows.

1 open issue
What changed in this PR

Addresses the RtMidi namespace conflict reported in #582 when compiling the audio output code on macOS.

Changes:

  • Forward-declares RtMidiOut in rt::midi and adds a global alias.
File Description
source/​audio/​midioutputdevice.h Updates the RtMidi type declaration for the namespaced API.

Review effort: Balanced

Comment thread source/audio/midioutputdevice.h Outdated
Comment on lines +36 to +37
namespace rt { namespace midi { class RtMidiOut; } }
using RtMidiOut = rt::midi::RtMidiOut;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

RtMidi 4.0.0 is from Apr 18, 2019 so we can change the minimum requirement to RtMidi 6.0.0 from 2023.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

2 participants