diff options
Diffstat (limited to 'AudioPlayer.h')
-rw-r--r-- | AudioPlayer.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/AudioPlayer.h b/AudioPlayer.h new file mode 100644 index 0000000..7f9c180 --- /dev/null +++ b/AudioPlayer.h @@ -0,0 +1,22 @@ +#pragma once + +#include <boost/process.hpp> + +#include <filesystem> + +class AudioPlayer +{ +public: + AudioPlayer(const std::filesystem::path& dir, const std::string& filename); + + void start(); + + void stop(); + + void set_file(const std::string& filename); + +private: + std::filesystem::path m_dir; + std::string m_file; + boost::process::child m_child_audioplayer; +}; |