diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-12 23:08:08 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-12 23:08:08 +0100 |
commit | 472cbf21e567c0c65c124f96cebe717cdef901fb (patch) | |
tree | c922c7f4b1bf72372ac9fc5b37d134ec78e2f9bd /MIDIPlayer.h | |
parent | 6ba60f7329811a4bb3a07b1e6d81156d7f3a4ac3 (diff) |
Play MIDI
Diffstat (limited to 'MIDIPlayer.h')
-rw-r--r-- | MIDIPlayer.h | 13 |
1 files changed, 12 insertions, 1 deletions
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; }; |