Should the constrainable property 'volume' be called differently?

Hi everybody!

Looking at the mediacapture-streams spec and talking with Harlad, it
sounds to me like the 'volume' constrainable property is incorrectly
named.

Since the system provides a device/channel volume, it might be
misunderstood as being a way to select or set the volume of a device
audio capture opened by getUserMedia. However, the property should to
be interpreted as a multiplier, hence a **gain**. Further, reading
carefully, it seems that its purpose is to lower the volume (since the
values are between 0.0 and 1.0), hence is a request to apply a
**loss** (a gain below 1.0).

Would it make sense to open a spec bug to rename the property to
'gain' or 'loss' instead of 'volume'? Do you have a better name for
such a property?

Cheers,
A.

Received on Monday, 6 May 2019 10:18:56 UTC