summaryrefslogtreecommitdiffhomepage
path: root/PCM.h
diff options
context:
space:
mode:
Diffstat (limited to 'PCM.h')
-rw-r--r--PCM.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/PCM.h b/PCM.h
index e7c7a5e..54771c9 100644
--- a/PCM.h
+++ b/PCM.h
@@ -20,7 +20,7 @@ using namespace std::string_literals;
class PCM
{
public:
- PCM();
+ PCM(Config& config);
~PCM();
void click(std::chrono::duration<double> offset);
@@ -38,6 +38,7 @@ public:
bool write_available();
private:
+ Config& m_config;
int err;
snd_pcm_t *handle;