aboutsummaryrefslogtreecommitdiffstats
path: root/pulse.h
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-01-21 10:17:49 -0500
committerDave Reisner <dreisner@archlinux.org>2013-01-21 15:49:31 -0500
commit46f6e64539f77eb07b2886aaaab358afd72569ce (patch)
tree0cb0e0555d0ce6fb20d9683cf0ec70e233314b49 /pulse.h
parent2bdbd84cc41975c7d9855551cecef02ff41c2b2a (diff)
downloadmirror-ponymix-46f6e64539f77eb07b2886aaaab358afd72569ce.tar.gz
mirror-ponymix-46f6e64539f77eb07b2886aaaab358afd72569ce.tar.bz2
mirror-ponymix-46f6e64539f77eb07b2886aaaab358afd72569ce.zip
abstract volume/balance output away from ponymix
Add a Notifier virtual base class and a CommandLineNotifier implementation which handles output of volume and balance levels after a change.
Diffstat (limited to 'pulse.h')
-rw-r--r--pulse.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/pulse.h b/pulse.h
index 632fbb8..e0b2bd3 100644
--- a/pulse.h
+++ b/pulse.h
@@ -1,5 +1,7 @@
#pragma once
+#include "notify.h"
+
// C
#include <string.h>
@@ -219,6 +221,8 @@ class PulseClient {
balance_range_ = { min, max };
}
+ void EnableNotifications(Notifier* notifier);
+
private:
void mainloop_iterate(pa_operation* op);
template<class T> T* find_fuzzy(vector<T>& haystack, const string& needle);
@@ -244,6 +248,7 @@ class PulseClient {
ServerInfo defaults_;
Range<int> volume_range_;
Range<int> balance_range_;
+ unique_ptr<Notifier> notifier_;
};
// vim: set et ts=2 sw=2: