aboutsummaryrefslogtreecommitdiff
path: root/src/pulse-manager.h
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-01-30 13:41:18 +0000
committerConor Curran <conor.curran@canonical.com>2010-01-30 13:41:18 +0000
commit0b66ce027d9fab70a01ada23f6b77035bbf6719f (patch)
treee9ce0b585878c526055d8ad66492edd790b07893 /src/pulse-manager.h
parentf3baf71567c1b8840dafcdcbb73a793dd6064c0f (diff)
downloadayatana-indicator-sound-0b66ce027d9fab70a01ada23f6b77035bbf6719f.tar.gz
ayatana-indicator-sound-0b66ce027d9fab70a01ada23f6b77035bbf6719f.tar.bz2
ayatana-indicator-sound-0b66ce027d9fab70a01ada23f6b77035bbf6719f.zip
pulse functionality refactored out inot to a separate PA file(s), sink details now stored in hash, complete list of events subscribed to, get sink list method added to the dbus service
Diffstat (limited to 'src/pulse-manager.h')
-rw-r--r--src/pulse-manager.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/pulse-manager.h b/src/pulse-manager.h
new file mode 100644
index 0000000..2aacee8
--- /dev/null
+++ b/src/pulse-manager.h
@@ -0,0 +1,52 @@
+#include <pulse/pulseaudio.h>
+#include <glib.h>
+#include "sound-service-dbus.h"
+
+//enum SinkInputType {
+// SINK_INPUT_ALL,
+// SINK_INPUT_CLIENT,
+// SINK_INPUT_VIRTUAL
+//};
+
+//enum SinkType {
+// SINK_ALL,
+// SINK_HARDWARE,
+// SINK_VIRTUAL,
+//};
+
+//enum SourceOutputType {
+// SOURCE_OUTPUT_ALL,
+// SOURCE_OUTPUT_CLIENT,
+// SOURCE_OUTPUT_VIRTUAL
+//};
+
+//enum SourceType {
+// SOURCE_ALL,
+// SOURCE_NO_MONITOR,
+// SOURCE_HARDWARE,
+// SOURCE_VIRTUAL,
+// SOURCE_MONITOR,
+//};
+
+
+typedef struct {
+ const gchar* name;
+ const gchar* description;
+ const gchar* icon_name;
+ gint index;
+ gint device_index;
+// pa_cvolume volume;
+// pa_channel_map channel_map;
+ gboolean mute;
+ gboolean active_port;
+} sink_info;
+
+
+//void set_volume(gint sink_index, gint volume_percent);
+pa_context* get_context(void);
+void establish_pulse_activities(SoundServiceDbus *service);
+void set_sink_volume(gint sink_index, gint percent);
+void toggle_global_mute(gboolean mute_value);
+
+
+