diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-01-21 10:17:49 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-01-21 15:49:31 -0500 |
commit | 46f6e64539f77eb07b2886aaaab358afd72569ce (patch) | |
tree | 0cb0e0555d0ce6fb20d9683cf0ec70e233314b49 /pulse.h | |
parent | 2bdbd84cc41975c7d9855551cecef02ff41c2b2a (diff) | |
download | mirror-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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: |