From: Jeongmo Yang Date: Wed, 29 Jan 2020 03:49:53 +0000 (+0900) Subject: stream-manager: Update volume for all channels X-Git-Tag: submit/tizen/20200203.035951~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4de625759a23643e7c63f561b5f5b783f79017a7;p=platform%2Fcore%2Fmultimedia%2Fpulseaudio-modules-tizen.git stream-manager: Update volume for all channels [Version] 11.1.95 [Profile] Common [Issue Type] Update Change-Id: I28f1ef5d696d800e96b5ffadcd5e8ccf8653769a Signed-off-by: Jeongmo Yang --- diff --git a/packaging/pulseaudio-modules-tizen.spec b/packaging/pulseaudio-modules-tizen.spec index b5bf22f..c7161cc 100644 --- a/packaging/pulseaudio-modules-tizen.spec +++ b/packaging/pulseaudio-modules-tizen.spec @@ -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+ diff --git a/src/stream-manager.c b/src/stream-manager.c index 5af07a6..59e25dd 100644 --- a/src/stream-manager.c +++ b/src/stream-manager.c @@ -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);