mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
Correct the parameter positions with the pa_cvolume_set() call.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1887 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
e04a8576bb
commit
1c44be2a7b
1 changed files with 1 additions and 1 deletions
|
|
@ -182,7 +182,7 @@ static void callback(pa_core *c, pa_subscription_event_type_t t, uint32_t idx, v
|
||||||
if (!regexec(&r->regex, si->name, 0, NULL, 0)) {
|
if (!regexec(&r->regex, si->name, 0, NULL, 0)) {
|
||||||
pa_cvolume cv;
|
pa_cvolume cv;
|
||||||
pa_log_debug("changing volume of sink input '%s' to 0x%03x", si->name, r->volume);
|
pa_log_debug("changing volume of sink input '%s' to 0x%03x", si->name, r->volume);
|
||||||
pa_cvolume_set(&cv, r->volume, si->sample_spec.channels);
|
pa_cvolume_set(&cv, si->sample_spec.channels, r->volume);
|
||||||
pa_sink_input_set_volume(si, &cv);
|
pa_sink_input_set_volume(si, &cv);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue