forked from enlightenment/enlightenment
mixer: update internal volume and call the changed event
This commit is contained in:
parent
91f34cb1f7
commit
d6833f0749
|
@ -420,7 +420,11 @@ _alsa_sources_volume_set(Emix_Source *source, Emix_Volume v)
|
||||||
{
|
{
|
||||||
elem = eina_list_nth(s->channels, i);
|
elem = eina_list_nth(s->channels, i);
|
||||||
_alsa_channel_volume_set(elem, v.volumes[i], EINA_FALSE);
|
_alsa_channel_volume_set(elem, v.volumes[i], EINA_FALSE);
|
||||||
|
s->source.volume.volumes[i] = v.volumes[i];
|
||||||
}
|
}
|
||||||
|
if (ctx->cb)
|
||||||
|
ctx->cb((void *)ctx->userdata, EMIX_SOURCE_CHANGED_EVENT,
|
||||||
|
(Emix_Source *)s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -488,7 +492,11 @@ _alsa_sink_volume_set(Emix_Sink *sink, Emix_Volume v)
|
||||||
{
|
{
|
||||||
elem = eina_list_nth(s->channels, i);
|
elem = eina_list_nth(s->channels, i);
|
||||||
_alsa_channel_volume_set(elem, v.volumes[i], EINA_FALSE);
|
_alsa_channel_volume_set(elem, v.volumes[i], EINA_FALSE);
|
||||||
|
s->sink.volume.volumes[i] = v.volumes[i];
|
||||||
}
|
}
|
||||||
|
if (ctx->cb)
|
||||||
|
ctx->cb((void *)ctx->userdata, EMIX_SINK_CHANGED_EVENT,
|
||||||
|
(Emix_Sink *)s);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Emix_Backend
|
static Emix_Backend
|
||||||
|
|
Loading…
Reference in New Issue