Add audio device settings

Summary:
Up to now, the audio device settings were not persistent. With this
commit, the last audio device will be restored after application
start.

Reviewers: kbasan, msutcliffe

Reviewed By: msutcliffe

Differential Revision: https://dev.swift-project.org/D7
This commit is contained in:
Roland Winklmeier
2017-04-23 16:02:27 +02:00
committed by Mathew Sutcliffe
parent f0bfad40b7
commit 862794cb02
3 changed files with 59 additions and 0 deletions

View File

@@ -134,6 +134,8 @@ namespace BlackCore
//! Connection in transition
bool inTransitionState() const;
void changeDeviceSettings();
//! Voice channel by room
QSharedPointer<IVoiceChannel> getVoiceChannelBy(const BlackMisc::Audio::CVoiceRoom &voiceRoom);
@@ -156,6 +158,8 @@ namespace BlackCore
// settings
BlackMisc::CSetting<BlackCore::Audio::TSettings> m_audioSettings { this };
BlackMisc::CSetting<BlackCore::Audio::TInputDevice> m_inputDeviceSetting { this, &CContextAudio::changeDeviceSettings };
BlackMisc::CSetting<BlackCore::Audio::TOutputDevice> m_outputDeviceSetting { this, &CContextAudio::changeDeviceSettings };
};
} // namespace
} // namespace