Use volume command for relative volume changes instead of setvol

This commit is contained in:
Andrzej Rybczak
2017-03-12 12:34:45 +01:00
parent 00cbbe5593
commit 625a0dff3a
3 changed files with 12 additions and 5 deletions

View File

@@ -472,6 +472,14 @@ void Connection::SetVolume(unsigned vol)
checkErrors();
}
void Connection::ChangeVolume(int change)
{
prechecksNoCommandsList();
mpd_run_change_volume(m_connection.get(), change);
checkErrors();
}
std::string Connection::GetReplayGainMode()
{
prechecksNoCommandsList();