mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
[AFV] Finer granularity for inc./dec. volume (hotkey)
This commit is contained in:
committed by
Mat Sutcliffe
parent
f2e0e7b22e
commit
32605cd557
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user