Skip to content

Commit

Permalink
audio/drumstick: add actual MIDI devices names
Browse files Browse the repository at this point in the history
  • Loading branch information
rozhuk-im committed Sep 17, 2024
1 parent 01b6f7f commit cff6e93
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- library/rt-backends/oss-in/ossinput_p.cpp
+++ library/rt-backends/oss-in/ossinput_p.cpp
@@ -43,9 +43,9 @@
QDir dir("/dev");
QStringList filters;
m_advanced = advanced;
- filters << "dmmidi*" << "admmidi*";
+ filters << "midi*" << "umidi*";
if (advanced) {
- filters << "midi*" << "amidi*";
+ filters << "amidi*" << "admmidi*" << "dmmidi*";
}
dir.setNameFilters(filters);
dir.setFilter(QDir::System);
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
--- library/rt-backends/oss-out/ossoutput.cpp
+++ library/rt-backends/oss-out/ossoutput.cpp
@@ -53,9 +53,9 @@
QDir dir("/dev");
QStringList filters;
m_advanced = advanced;
- filters << "dmmidi*" << "admmidi*";
+ filters << "midi*" << "umidi*";
if (advanced) {
- filters << "midi*" << "amidi*";
+ filters << "amidi*" << "admmidi*" << "dmmidi*";
}
dir.setNameFilters(filters);
dir.setFilter(QDir::System);

0 comments on commit cff6e93

Please sign in to comment.