#pragma once #include #include #include #include class MIDIPlayer { public: MIDIPlayer(const std::filesystem::path& path = "."); void start(); void stop(); bool is_playing(); void set_file(const std::string& filename); std::string get_file(); std::vector get_filelist(); private: boost::process::child m_child; std::filesystem::path m_dir; std::string m_file; };