From d9ace12fee24965baf6cf065691ed99c0d229ab1 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 17 Jan 2025 20:19:51 +0100 Subject: Detect MIDI port --- MIDIPlayer.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'MIDIPlayer.h') diff --git a/MIDIPlayer.h b/MIDIPlayer.h index e104321..811bea4 100644 --- a/MIDIPlayer.h +++ b/MIDIPlayer.h @@ -4,6 +4,7 @@ #include #include +#include #include @@ -24,9 +25,18 @@ public: std::vector 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; }; -- cgit v1.2.3