|
YAACC - UPNP Client and Server
|
The group volume as the controller role of the Sendspin protocol sets it: every player moves by the same delta, a player that reaches a boundary is clamped and what it could not take is divided among the others, until all of it is applied or all are at a boundary; the results are rounded to integers at the end. More...

Static Public Member Functions | |
| static int[] | targets (int[] current, int requested) |
The group volume as the controller role of the Sendspin protocol sets it: every player moves by the same delta, a player that reaches a boundary is clamped and what it could not take is divided among the others, until all of it is applied or all are at a boundary; the results are rounded to integers at the end.
Pure.
|
static |
| current | the volumes (0 to 100) of the players that support volume |
| requested | the volume asked for the whole group; outside 0 to 100 it is clamped |
Referenced by de.yaacc.sendspin.SendspinHub.setGroupVolume().
