mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
sink-input: Don't assert when removing non-existent volume factor
This makes it easier for users of this API to add/updated a volume factor by doing a _remove_volume_factor() followed by an add_volume_factor(), rather than having to either remember whether this is the first set operation or have an API to query whether a factor has already been set.
This commit is contained in:
parent
bc7aaff377
commit
f8f0d4c26b
2 changed files with 11 additions and 3 deletions
|
|
@ -371,7 +371,7 @@ bool pa_sink_input_is_passthrough(pa_sink_input *i);
|
|||
bool pa_sink_input_is_volume_readable(pa_sink_input *i);
|
||||
void pa_sink_input_set_volume(pa_sink_input *i, const pa_cvolume *volume, bool save, bool absolute);
|
||||
void pa_sink_input_add_volume_factor(pa_sink_input *i, const char *key, const pa_cvolume *volume_factor);
|
||||
void pa_sink_input_remove_volume_factor(pa_sink_input *i, const char *key);
|
||||
int pa_sink_input_remove_volume_factor(pa_sink_input *i, const char *key);
|
||||
pa_cvolume *pa_sink_input_get_volume(pa_sink_input *i, pa_cvolume *volume, bool absolute);
|
||||
|
||||
void pa_sink_input_set_mute(pa_sink_input *i, bool mute, bool save);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue