From 46f6e64539f77eb07b2886aaaab358afd72569ce Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 21 Jan 2013 10:17:49 -0500 Subject: 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. --- pulse.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pulse.h') 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 @@ -219,6 +221,8 @@ class PulseClient { balance_range_ = { min, max }; } + void EnableNotifications(Notifier* notifier); + private: void mainloop_iterate(pa_operation* op); template T* find_fuzzy(vector& haystack, const string& needle); @@ -244,6 +248,7 @@ class PulseClient { ServerInfo defaults_; Range volume_range_; Range balance_range_; + unique_ptr notifier_; }; // vim: set et ts=2 sw=2: -- cgit v1.2.3