|
myMPD
Internal API documentation
|
myMPD volume API More...


Go to the source code of this file.
Functions | |
| sds | mympd_api_volume_set (struct t_partition_state *partition_state, unsigned volume_min, unsigned volume_max, sds buffer, enum mympd_cmd_ids cmd_id, unsigned request_id, unsigned volume) |
| sds | mympd_api_volume_change (struct t_partition_state *partition_state, unsigned volume_min, unsigned volume_max, sds buffer, unsigned request_id, int relative_volume) |
myMPD volume API
| sds mympd_api_volume_change | ( | struct t_partition_state * | partition_state, |
| unsigned | volume_min, | ||
| unsigned | volume_max, | ||
| sds | buffer, | ||
| unsigned | request_id, | ||
| int | relative_volume | ||
| ) |
Changes the volume by relative_volume
| partition_state | pointer to partition state |
| volume_min | minimum volume |
| volume_max | maximum volume |
| buffer | already allocated sds string to append the response |
| request_id | jsonrpc request id |
| relative_volume | the relative volume between -100 and 100 |
| sds mympd_api_volume_set | ( | struct t_partition_state * | partition_state, |
| unsigned | volume_min, | ||
| unsigned | volume_max, | ||
| sds | buffer, | ||
| enum mympd_cmd_ids | cmd_id, | ||
| unsigned | request_id, | ||
| unsigned | volume | ||
| ) |
Sets an absolute volume level
| partition_state | pointer to partition state |
| volume_min | minimum volume |
| volume_max | maximum volume |
| buffer | already allocated sds string to append the response |
| cmd_id | jsonrpc method |
| request_id | jsonrpc request id |
| volume | volume percent to set |