forked from enlightenment/enlightenment
show the correct volume state on unmute
SVN revision: 64292
This commit is contained in:
parent
e9d12e2d03
commit
739d2618f0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue