summaryrefslogtreecommitdiffhomepage
path: root/MIDIPlayer.h
diff options
context:
space:
mode:
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;
};