From 170afb3ecc0e216a34945eb31a9743d86bf9c325 Mon Sep 17 00:00:00 2001 From: Conor Curran Date: Wed, 27 Jan 2010 16:23:36 +0000 Subject: signals now work, also pulling in slider --- src/sound-service.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/sound-service.c') diff --git a/src/sound-service.c b/src/sound-service.c index dc43d77..7f4b588 100644 --- a/src/sound-service.c +++ b/src/sound-service.c @@ -50,6 +50,7 @@ static void context_success_callback(pa_context *c, int success, void *userdata) g_debug("Context Success Callback - result = %i", success); } +// TODO we are not handling multiple sinks appropriately static void retrieve_complete_sink_list(pa_context *c, const pa_sink_info *sink, int eol, void *userdata){ if(eol > 0){ // TODO apparently never returns 0 sinks - Tested and it appears this assumption/prediction is correct. @@ -63,6 +64,9 @@ static void retrieve_complete_sink_list(pa_context *c, const pa_sink_info *sink, int value = g_strcasecmp(only_sink->name, " auto_null "); g_debug("comparison outcome with auto_null is %i", value); sink_available = (value != 0 && only_sink->active_port != NULL); + // Strictly speaking all_muted should only be through if all sinks are muted + // It is more application specific + all_muted = (only_sink->mute == 1); g_debug("Available sink is named %s", only_sink->name); g_debug("does Available sink have an active port: %i", only_sink->active_port != NULL); g_debug("sink_available = %i", sink_available); -- cgit v1.2.3