[AFV] Finer granularity for inc./dec. volume (hotkey)

This commit is contained in:
Klaus Basan
2020-04-25 02:00:46 +02:00
committed by Mat Sutcliffe
parent f2e0e7b22e
commit 32605cd557

View File

@@ -590,14 +590,14 @@ namespace BlackCore
void CContextAudioBase::audioIncreaseVolume(bool enabled)
{
if (!enabled) { return; }
const int v = qRound(this->getVoiceOutputVolume() * 1.2);
const int v = qRound(this->getVoiceOutputVolume() * 1.05);
this->setVoiceOutputVolume(v);
}
void CContextAudioBase::audioDecreaseVolume(bool enabled)
{
if (!enabled) { return; }
const int v = qRound(this->getVoiceOutputVolume() / 1.2);
const int v = qRound(this->getVoiceOutputVolume() / 1.05);
this->setVoiceOutputVolume(v);
}