aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/mixer/lib/emix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/mixer/lib/emix.c')
-rw-r--r--src/modules/mixer/lib/emix.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/mixer/lib/emix.c b/src/modules/mixer/lib/emix.c
index 898df3a3b..058e4fb1a 100644
--- a/src/modules/mixer/lib/emix.c
+++ b/src/modules/mixer/lib/emix.c
@@ -280,6 +280,13 @@ emix_sink_volume_set(Emix_Sink *sink, Emix_Volume volume)
ctx->loaded->ebackend_sink_volume_set &&
sink));
+ sink->set_volume.channel_count = volume.channel_count;
+ sink->set_volume.volumes = calloc(volume.channel_count, sizeof(int));
+ for (unsigned int i = 0; i < volume.channel_count; i++)
+ {
+ sink->set_volume.volumes[i] = volume.volumes[i];
+ }
+
ctx->loaded->ebackend_sink_volume_set(sink, volume);
}