The volume of the OpenHome volume service is a number from 0 to VolumeMax (the device says how many steps it has), YAACC uses percent.
More...
|
|
static final long | RENDERER_MAX = 100 |
| | What the renderer reports: VolumeMax, VolumeUnity and VolumeSteps.
|
| |
The volume of the OpenHome volume service is a number from 0 to VolumeMax (the device says how many steps it has), YAACC uses percent.
The renderer is the phone's music stream: 100 steps, so the number is the percent.
◆ fromPercent()
| static long de.yaacc.openhome.OhVolume.fromPercent |
( |
int | percent, |
|
|
long | max ) |
|
static |
- Returns
- the device's volume step for the percent (0 to 100)
◆ toPercent()
| static int de.yaacc.openhome.OhVolume.toPercent |
( |
long | value, |
|
|
long | max ) |
|
static |
The documentation for this class was generated from the following file:
- /github/workspace/yaacc/src/main/java/de/yaacc/openhome/OhVolume.java