diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pulse-manager.c | 6 | ||||
-rw-r--r-- | src/sound-service.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/pulse-manager.c b/src/pulse-manager.c index ac3d609..269ac58 100644 --- a/src/pulse-manager.c +++ b/src/pulse-manager.c @@ -158,9 +158,9 @@ static gdouble get_default_sink_volume() return 0; sink_info *s = g_hash_table_lookup(sink_hash, GINT_TO_POINTER(DEFAULT_SINK_INDEX)); pa_volume_t vol = pa_cvolume_avg(&s->volume); - gdouble value = pa_sw_volume_to_linear(vol); - g_debug("software volume = %f", value); - return value; + gdouble volume_percent = ((gdouble) vol * 100) / PA_VOLUME_NORM; + g_debug("software volume = %f", volume_percent); + return volume_percent; } static void mute_each_sink(gpointer key, gpointer value, gpointer user_data) diff --git a/src/sound-service.c b/src/sound-service.c index 228e560..d5c4eae 100644 --- a/src/sound-service.c +++ b/src/sound-service.c @@ -124,8 +124,8 @@ service_shutdown (IndicatorService *service, gpointer user_data) if (mainloop != NULL) { g_debug("Service shutdown !"); // TODO: uncomment for release !! -/* close_pulse_activites();*/ -/* g_main_loop_quit(mainloop);*/ + close_pulse_activites(); + g_main_loop_quit(mainloop); } return; } |