mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 13:36:48 +08:00
Ref T730, function to check range for input/output volume
This commit is contained in:
committed by
Mat Sutcliffe
parent
905c487451
commit
09b38b4e6d
@@ -135,11 +135,10 @@ namespace BlackCore
|
||||
if (m_debugEnabled) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO << volume; }
|
||||
|
||||
const bool wasMuted = this->isMuted();
|
||||
if (volume > CSettings::OutMax) { volume = CSettings::OutMax; }
|
||||
else if (volume < CSettings::OutMax) { volume = CSettings::OutMax; }
|
||||
volume = CSettings::fixOutVolume(volume);
|
||||
|
||||
const int currentVolume = m_voiceClient.getNormalizedOutputVolume();
|
||||
bool changedVoiceOutput = (currentVolume != volume);
|
||||
const bool changedVoiceOutput = (currentVolume != volume);
|
||||
if (changedVoiceOutput)
|
||||
{
|
||||
m_voiceClient.setOutputVolumeDb(volume);
|
||||
|
||||
Reference in New Issue
Block a user