stream-manager-dbus: Improve ducking API regarding a stream not running 89/212889/2
authorSangchul Lee <sc11.lee@samsung.com>
Wed, 28 Aug 2019 02:17:13 +0000 (11:17 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 29 Aug 2019 02:42:36 +0000 (11:42 +0900)
commit197db409e380cde2be56c9460affee9f3baf3d44
tree39f21c102fdf5b3f99e62a97743bdceb00db8cf5
parentb2130325fd937f48579b04e7779041dc8478230d
stream-manager-dbus: Improve ducking API regarding a stream not running

If there's only one stream that belongs to the target stream of ducking
effect and is not running, PA_CORE_HOOK_SINK_INPUT_RAMP_FINISH is not
invoked because it is not a stream to be rendered in this state.

This patch adds condition to use pa_sink_input_add_volume_factor() to
make the effect properly and to send the signal immediately in this case.

[Version] 11.1.70
[Issue Type] Bug fix

Change-Id: Id4339211318c8ce8388f2fce1b290b2a1dc1e09f
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/pulseaudio-modules-tizen.spec
src/stream-manager-dbus.c
src/stream-manager.c