176
177
if (!(si = pa_idxset_get_by_index(c->sink_inputs, idx)))
182
183
for (r = u->rules; r; r = r->next) {
183
if (!regexec(&r->regex, si->name, 0, NULL, 0)) {
184
if (!regexec(&r->regex, n, 0, NULL, 0)) {
186
187
pa_cvolume_set(&cv, si->sample_spec.channels, r->volume);
187
188
pa_sink_input_set_volume(si, &cv);