show the correct volume state on unmute

SVN revision: 64292
This commit is contained in:
Viktor Kojouharov 2011-10-22 09:24:08 +00:00
parent e9d12e2d03
commit 739d2618f0
1 changed files with 6 additions and 1 deletions

View File

@ -382,7 +382,12 @@ _mixer_toggle_mute(E_Mixer_Instance *inst, Eina_Bool non_ui)
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