blob: 39ae41c59a4afcec83928cc15cc93e8a50e30316 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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 {
gchar* name;
gchar* description;
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(guint percent);
void toggle_global_mute(gboolean mute_value);
|