The volume and mute of the server settings as a linear gain for the sink.
More...
|
| static float | gain (int volume, boolean muted) |
| | Linear in the percent, like the software volume of the reference client (to be judged by ear on a device).
|
| |
The volume and mute of the server settings as a linear gain for the sink.
◆ gain()
| static float de.yaacc.multiroom.engine.GainMapper.gain |
( |
int | volume, |
|
|
boolean | muted ) |
|
static |
Linear in the percent, like the software volume of the reference client (to be judged by ear on a device).
- Parameters
-
| volume | percent; clamped to 0 to 100 |
- Returns
- 0 when muted, else 0 to 1
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/multiroom/engine/GainMapper.java