命令行上的 CoreMIDI
我已经开始开发一个基于 RtMidi 的命令行应用程序,它可以发送任意 MIDI 数据。我发现,虽然当我从控制台运行该工具时可以与 MIDI 设备通信,但如果我从另一台机器 ssh 到我的机器,我根本无法使用任何 MIDI 功能。具体来说,RtMidi 调用 MIDIClientCreate() ,它返回错误代码 -10839,我在任何地方都找不到该代码的记录。我尝试过复制工作进程的环境变量,但这也不起作用。
I've started working on a command-line app based on RtMidi that can send arbitrary MIDI data. I've found that, while I can talk to MIDI devices when I run the tool from the console, if I ssh in to my machine from another, I can't get any MIDI functionality to work at all. To be specific, RtMidi makes a call to MIDIClientCreate()
which returns error code -10839, which is not documented anywhere that I could find. I've tried duplicating the environment variables of working process, but that didn't work either.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
错误代码 -10839 对应于名为
kMIDIServerStartErr
的符号。我怀疑 CoreMIDI 服务器需要连接到 SystemUIServer(即图形登录)。Error code -10839 corresponds to the symbol named
kMIDIServerStartErr
. I suspect that the CoreMIDI server requires a connection to SystemUIServer (ie, a graphical login).