mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-25 02:05:43 +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)
|
void CContextAudioBase::audioIncreaseVolume(bool enabled)
|
||||||
{
|
{
|
||||||
if (!enabled) { return; }
|
if (!enabled) { return; }
|
||||||
const int v = qRound(this->getVoiceOutputVolume() * 1.2);
|
const int v = qRound(this->getVoiceOutputVolume() * 1.05);
|
||||||
this->setVoiceOutputVolume(v);
|
this->setVoiceOutputVolume(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CContextAudioBase::audioDecreaseVolume(bool enabled)
|
void CContextAudioBase::audioDecreaseVolume(bool enabled)
|
||||||
{
|
{
|
||||||
if (!enabled) { return; }
|
if (!enabled) { return; }
|
||||||
const int v = qRound(this->getVoiceOutputVolume() / 1.2);
|
const int v = qRound(this->getVoiceOutputVolume() / 1.05);
|
||||||
this->setVoiceOutputVolume(v);
|
this->setVoiceOutputVolume(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user