summaryrefslogtreecommitdiffhomepage
path: root/MIDIPlayer.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-17 21:02:51 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-17 21:02:51 +0100
commitbb56941f6b61529dd770475296d093727c68fdc6 (patch)
tree065c61ef71a00d0759afcdc0316150db278a7efd /MIDIPlayer.h
parent22ed919b2fffa933c8a72763fda2b603a92a18cf (diff)
Automatically use correct files path (executable path or /media/usb)
Diffstat (limited to 'MIDIPlayer.h')
-rw-r--r--MIDIPlayer.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/MIDIPlayer.h b/MIDIPlayer.h
index 811bea4..8009029 100644
--- a/MIDIPlayer.h
+++ b/MIDIPlayer.h
@@ -6,12 +6,14 @@
#include <boost/process.hpp>
#include <alsa/asoundlib.h>
+#include "config.h"
+
#include <filesystem>
class MIDIPlayer
{
public:
- MIDIPlayer(const std::filesystem::path& path = ".");
+ MIDIPlayer(Config& config);
void start();
@@ -32,6 +34,7 @@ private:
void close_seq(void);
void iterate_ports(void);
+ Config& m_config;
boost::process::child m_child;
std::filesystem::path m_dir;
std::string m_file;