Commit d33657fb authored by minus's avatar minus

WIP

parent 42a7a945
......@@ -53,9 +53,16 @@ enum button {
LAYERB = 85,
};
static pa_glib_mainloop *xpa_main_loop;
struct sink_input {
const char *name;
pa_cvolume volume;
uint32_t *indices;
};
static struct sink_input *sink_inputs = NULL;
static void xpa_on_sink_input_info(pa_context *ctx,
const pa_sink_input_info *info, int eol, void *userdata) {
if (!info) return;
......@@ -71,7 +78,9 @@ static void xpa_on_subscribe(pa_context *ctx,
etype == PA_SUBSCRIPTION_EVENT_CHANGE ? "changed" :
etype == PA_SUBSCRIPTION_EVENT_REMOVE ? "removed" : "???";
if (etype != PA_SUBSCRIPTION_EVENT_REMOVE) {
if (etype == PA_SUBSCRIPTION_EVENT_REMOVE) {
for ...
} else {
pa_operation *op = pa_context_get_sink_input_info(ctx, idx,
&xpa_on_sink_input_info, NULL);
pa_operation_unref(op);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment