-
Notifications
You must be signed in to change notification settings - Fork 155
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
[Bug]: DeviceManager doesn't work on Linux #246
Comments
Some the the functions you're calling there are asyncronous. You can't really run them in a straight procedural app like that. Also, your I would run the juce demo app first to see if that picks up your OS MIDI devices. If that does, TE should be able to find them. |
Thank you. I will try that. |
Just to clarify. By "juce demo app", do you mean this? https://github.com/juce-framework/JUCE/blob/master/examples/CMake/GuiApp/Main.cpp |
No, I think that's a template. It's this one: https://github.com/juce-framework/JUCE/blob/master/examples/DemoRunner/CMakeLists.txt |
OK. I tried the tracktion_engine::DemoRunner on my ubuntu PC and it seemed to be working:
How is this code compiled? I can't find an |
It's a PIP so I think the |
Detailed steps on how to reproduce the bug
Summary
I'm unable to set the Midi In Device with
dm.setDefaultMidiInDevice()
on linux devices.Context
My use case is playing virtual midi messages with:
Reproducing
I created a program
fake_main.cc
(below) in order to reproduce this behaviour.Even though I'm setting the default midi in device,
dm.getDefaultMidiInDevice()
keeps returningnullptr
Here's my log from the github runner CI:
Solution?
I think this has to do with the line, since ALSA handles midi messages:
I saw the same error message on tracktion_engine:master.
Am I doing something wrong? Like not setting up the audio server correctly?
Note:
What is the expected behaviour?
The test should pass.
FakeMain
program runs without failing the assert.Unit test to reproduce the error?
Operating systems
Linux
What versions of the operating systems?
Ubuntu 22.04
Architectures
x86_64, ARM
Stacktrace
Plug-in formats (if applicable)
No response
Plug-in host applications (DAWs) (if applicable)
No response
Testing on the
develop
branchThe bug is present on the
develop
branchCode of Conduct
The text was updated successfully, but these errors were encountered: