refs #372 Add context method to set the voice output volume

This commit is contained in:
Roland Winklmeier
2015-02-03 21:36:33 +01:00
committed by Klaus Basan
parent 84ac5e9972
commit 984c0d084f
5 changed files with 20 additions and 0 deletions

View File

@@ -242,6 +242,12 @@ namespace BlackCore
emit changedAudioVolumes(com1Volume, com2Volume);
}
void CContextAudio::setVoiceOutputVolume(int volume)
{
m_outDeviceVolume = volume;
if (!isMuted()) m_voiceOutputDevice->setOutputVolume(m_outDeviceVolume);
}
void CContextAudio::setMute(bool muted)
{
if (this->isMuted() == muted) { return; } // avoid roundtrips / unnecessary signals