From d9b456d738e5013d48f41f5e6315ef7c22d6acf0 Mon Sep 17 00:00:00 2001 From: Sam Light Date: Wed, 10 Sep 2025 19:37:28 +0100 Subject: Initial commit --- src/modules/pulse.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/modules/pulse.h (limited to 'src/modules/pulse.h') 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 + +#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 -- cgit v1.2.3