From: Enlightenment S. <no-...@en...> - 2011-10-22 09:24:15
|
Log: show the correct volume state on unmute Author: urandom Date: 2011-10-22 02:24:08 -0700 (Sat, 22 Oct 2011) New Revision: 64292 Trac: http://trac.enlightenment.org/e/changeset/64292 Modified: trunk/e/src/modules/mixer/e_mod_main.c Modified: trunk/e/src/modules/mixer/e_mod_main.c =================================================================== --- trunk/e/src/modules/mixer/e_mod_main.c 2011-10-22 06:30:14 UTC (rev 64291) +++ trunk/e/src/modules/mixer/e_mod_main.c 2011-10-22 09:24:08 UTC (rev 64292) @@ -382,7 +382,12 @@ if (!state->mute) e_mod_mixer_volume_set(inst->sys, inst->channel, state->left, state->right); _mixer_gadget_update(inst); if (non_ui) - _mixer_notify(0.0, inst); + { + if (state->mute) + _mixer_notify(0.0, inst); + else + _mixer_notify(((float)state->left + (float)state->right) / 2.0, inst); + } } static void |