stream-manager: Update volume for all channels 76/223476/1
authorJeongmo Yang <jm80.yang@samsung.com>
Wed, 29 Jan 2020 03:49:53 +0000 (12:49 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Thu, 30 Jan 2020 05:33:43 +0000 (14:33 +0900)
[Version] 11.1.95
[Profile] Common
[Issue Type] Update

Change-Id: I28f1ef5d696d800e96b5ffadcd5e8ccf8653769a
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/pulseaudio-modules-tizen.spec
src/stream-manager.c

index b5bf22f..c7161cc 100644 (file)
@@ -1,6 +1,6 @@
 Name:             pulseaudio-modules-tizen
 Summary:          Pulseaudio modules for Tizen
-Version:          11.1.94
+Version:          11.1.95
 Release:          0
 Group:            Multimedia/Audio
 License:          LGPL-2.1+
index 5af07a6..59e25dd 100644 (file)
@@ -2443,8 +2443,7 @@ static void add_sink_input_to_ducking_streams(pa_stream_manager *m, pa_sink_inpu
         pa_cvolume_ramp_set(&vol_ramp, i->volume.channels,
             PA_VOLUME_RAMP_TYPE_LINEAR, (long)sd->duration, sd->set_vol);
 
-        vol.channels = i->volume.channels;
-        vol.values[0] = sd->set_vol;
+        pa_cvolume_set(&vol, i->volume.channels, sd->set_vol);
 
         pa_sink_input_add_volume_factor(i, sd->vol_key, &vol);
         pa_sink_input_add_volume_ramp_factor(i, sd->vol_key, &vol_ramp, false);