Skip to content

Commit

Permalink
Merge pull request #94 from jcorporation/change_volume_deprecated
Browse files Browse the repository at this point in the history
Add deprecation notice for mpd_(run|send)_change_volume
  • Loading branch information
jcorporation committed Apr 23, 2024
2 parents a07d556 + b587cc4 commit 58936a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/mpd/mixer.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ mpd_run_set_volume(struct mpd_connection *connection, unsigned volume);
/**
* Changes the volume of all output devices.
*
* This function uses a deprecated feature of MPD, call
* mpd_send_set_volume() instead.
*
* @param connection the connection to MPD
* @param relative_volume the relative volume, an integer between -100 and 100
* @return true on success, false on error
Expand All @@ -55,6 +58,9 @@ mpd_send_change_volume(struct mpd_connection *connection, int relative_volume);
/**
* Shortcut for mpd_send_change_volume() and mpd_response_finish().
*
* This function uses a deprecated feature of MPD, call
* mpd_run_set_volume() instead.
*
* @param connection the connection to MPD
* @param relative_volume the relative volume, an integer between -100 and 100
* @return true on success, false on error
Expand Down

0 comments on commit 58936a5

Please sign in to comment.