blob: 7f9c180a8d60bcd026422b42a2754397437be33d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
};
|