mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
Tell programmers that set_volume uses linear scale (fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1439)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1722>
This commit is contained in:
parent
98bd83484c
commit
f449a553a7
1 changed files with 4 additions and 0 deletions
|
@ -859,6 +859,10 @@ gst_player_get_volume (GstPlayer * self)
|
|||
* @val: the new volume level, as a percentage between 0 and 1
|
||||
*
|
||||
* Sets the volume level of the stream as a percentage between 0 and 1.
|
||||
*
|
||||
* This volume is a linear factor. For showing the volume in a GUI it
|
||||
* might make sense to first convert from a different format. Volume sliders
|
||||
* should usually use a cubic volume. See gst_stream_volume_convert_volume().
|
||||
*/
|
||||
void
|
||||
gst_player_set_volume (GstPlayer * self, gdouble val)
|
||||
|
|
Loading…
Reference in a new issue