From 472cbf21e567c0c65c124f96cebe717cdef901fb Mon Sep 17 00:00:00 2001
From: Roland Reichwein <mail@reichwein.it>
Date: Sun, 12 Jan 2025 23:08:08 +0100
Subject: Play MIDI

---
 MIDIPlayer.h | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

(limited to 'MIDIPlayer.h')

diff --git a/MIDIPlayer.h b/MIDIPlayer.h
index e859bed..e104321 100644
--- a/MIDIPlayer.h
+++ b/MIDIPlayer.h
@@ -3,10 +3,14 @@
 #include <string>
 #include <vector>
 
+#include <boost/process.hpp>
+
+#include <filesystem>
+
 class MIDIPlayer
 {
 public:
-  MIDIPlayer();
+  MIDIPlayer(const std::filesystem::path& path = ".");
 
   void start();
 
@@ -16,6 +20,13 @@ public:
 
   void set_file(const std::string& filename);
 
+  std::string get_file();
+
   std::vector<std::string> get_filelist();
+
+private:
+  boost::process::child m_child;
+  std::filesystem::path m_dir;
+  std::string m_file;
 };
 
-- 
cgit v1.2.3