} else {
pa_sink_input_add_volume_ramp_factor(i, sd->vol_key, &vol_ramp, true);
}
-
} else {
pa_log_info("unducking: remove volume(ramp) factor, key[%s] from stream[idx:%u]",
sd->vol_key, i->index);
memset(&sd->vol_key, 0, sizeof(sd->vol_key));
}
- pa_log_info("ducking stream count(%d)", sd->ducking_stream_count);
+ pa_log_info("ducking stream count(%p,%d)", sd, sd->ducking_stream_count);
pa_assert_se(dbus_message_append_args(reply, DBUS_TYPE_STRING, &stream_manager_dbus_ret_str[RET_MSG_OK], DBUS_TYPE_INVALID));
/* get stream_ducking */
pa_assert_se((sd = pa_hashmap_get(m->stream_duckings, (const void*)id)));
- pa_log_info("id[%u], is_ducked[%u]", id, sd->is_ducked);
+ pa_log_info("id[%u], is_ducked[%p,%u]", id, sd, sd->is_ducked);
pa_assert_se(dbus_message_append_args(reply, DBUS_TYPE_BOOLEAN, &sd->is_ducked, DBUS_TYPE_INVALID));
pa_assert_se(dbus_message_append_args(reply, DBUS_TYPE_STRING, &stream_manager_dbus_ret_str[RET_MSG_OK], DBUS_TYPE_INVALID));
* then broadcast a signal with context id.*/
PA_HASHMAP_FOREACH(sd, m->stream_duckings, state) {
PA_IDXSET_FOREACH(stream, sd->idx_ducking_streams, idx) {
- if (stream == i) {
- pa_log_info("matched");
+ if (stream == i && sd->ducking_stream_count > 0) {
+ pa_log_info("matched (%p,%p)", sd, i);
break;
}
}
* Note that the condition of increasing count value below is located in
* handle_activate_ducking() of DBus handler. */
if (sd->ducking_stream_count > 0 && --sd->ducking_stream_count == 0) {
- pa_log_info("send signal for ramp finished - is_ducked(%d)", is_ducked);
+ pa_log_info("send signal for ramp finished - is_ducked(%p,%d)", sd, is_ducked);
sd->is_ducked = is_ducked;
send_ducking_state_changed_signal(pa_dbus_connection_get(m->dbus_conn), sd->trigger_index, sd->is_ducked);
}