summaryrefslogtreecommitdiff
path: root/src/modules/pulse.h
diff options
context:
space:
mode:
authorSam Light <sam@lightscale.co.uk>2025-09-10 19:37:28 +0100
committerSam Light <sam@lightscale.co.uk>2025-09-10 19:37:28 +0100
commitd9b456d738e5013d48f41f5e6315ef7c22d6acf0 (patch)
tree2e3722f5697cbf883c4b16edc87726b9e510bce1 /src/modules/pulse.h
Initial commit
Diffstat (limited to 'src/modules/pulse.h')
-rw-r--r--src/modules/pulse.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/modules/pulse.h b/src/modules/pulse.h
new file mode 100644
index 0000000..708d05c
--- /dev/null
+++ b/src/modules/pulse.h
@@ -0,0 +1,26 @@
+#ifndef _DWXINFO_PULSE_H_
+#define _DWXINFO_PULSE_H_
+
+#include <stdbool.h>
+
+#define PULSE_VALUE_SIZE 5
+
+typedef struct pa_mainloop pa_mainloop;
+typedef struct pa_context pa_context;
+
+struct pulse {
+ pa_mainloop * ml;
+ pa_context * ctx;
+ char * default_sink;
+
+ bool run_loop;
+
+ char value[PULSE_VALUE_SIZE];
+};
+
+struct pulse * pulse_new();
+void pulse_free(struct pulse *);
+
+void pulse_update(struct pulse *);
+
+#endif