Skip to content

Commit c3ef7d5

Browse files
committed
player/command: deprecate ao-volume and ao-mute
These properties were mostly only useful before the removal of --softvol=no. At present, mpv has its own volume mixer and never touches the audio server volume at all. There's no reason for mpv to provide these properties, if users wish to change the audio server volume, it's trivial to do so in a Lua/Javascript script. Moreover, ao-volume presents the audio server volume as-is, meaning without any conversion or normalization. As such, the meaning of the value changes depending on the audio server in use or the configuration of the audio server. There's no correct way for mpv to do this normalization. As such, this kind of functionality is better suited for a Lua/Javascript script where the user can normalize the values to their preferred scale, and not bloat mpv with pointless properties that are confusing and not useful.
1 parent 9465b30 commit c3ef7d5

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
deprecate `ao-volume`
2+
deprecate `ao-mute`

DOCS/man/input.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2702,10 +2702,14 @@ Property list
27022702
on a linear curve, while with PulseAudio this controls per-application volume
27032703
on a cubic curve.
27042704

2705+
.. warning:: This property is deprecated and will be removed in the future.
2706+
27052707
``ao-mute`` (RW)
27062708
Similar to ``ao-volume``, but controls the mute state. May be unimplemented
27072709
even if ``ao-volume`` works.
27082710

2711+
.. warning:: This property is deprecated and will be removed in the future.
2712+
27092713
``audio-params``
27102714
Audio format as output by the audio decoder.
27112715
This has a number of sub-properties:

0 commit comments

Comments
 (0)