mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(audio): input device not closed under certain circumstances
fixes #3625 Input device was not closed after the following steps: - Select "Disabled" for audio source - Switch away from A/V settings - Switch back to A/V settings - Switch to some audio input device - Switch away from A/V settings -> audio input device still open, but unused
This commit is contained in:
parent
acef759a58
commit
80f5cb5f7a
|
@ -544,6 +544,11 @@ void AVForm::on_inDevCombobox_currentIndexChanged(int deviceIndex)
|
|||
audioSettings->setInDev(deviceName);
|
||||
|
||||
audio->reinitInput(deviceName);
|
||||
subscribedToAudioIn = inputEnabled;
|
||||
if (inputEnabled) {
|
||||
audio->subscribeInput();
|
||||
}
|
||||
|
||||
microphoneSlider->setEnabled(inputEnabled);
|
||||
if (!inputEnabled) {
|
||||
volumeDisplay->setValue(volumeDisplay->minimum());
|
||||
|
|
Loading…
Reference in New Issue
Block a user