summaryrefslogtreecommitdiffhomepage
path: root/MIDIPlayer.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-17 20:19:51 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-17 20:19:51 +0100
commitd9ace12fee24965baf6cf065691ed99c0d229ab1 (patch)
tree368705985079f432a17a4275867db03de7a601b5 /MIDIPlayer.h
parent641df30129ed241cda2440280b5282410d5ee5b3 (diff)
Detect MIDI port
Diffstat (limited to 'MIDIPlayer.h')
-rw-r--r--MIDIPlayer.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/MIDIPlayer.h b/MIDIPlayer.h
index e104321..811bea4 100644
--- a/MIDIPlayer.h
+++ b/MIDIPlayer.h
@@ -4,6 +4,7 @@
#include <vector>
#include <boost/process.hpp>
+#include <alsa/asoundlib.h>
#include <filesystem>
@@ -24,9 +25,18 @@ public:
std::vector<std::string> get_filelist();
+ int get_midi_port();
+
private:
+ void init_seq(void);
+ void close_seq(void);
+ void iterate_ports(void);
+
boost::process::child m_child;
std::filesystem::path m_dir;
std::string m_file;
+
+ snd_seq_t* m_seq;
+ int m_client;
};