mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
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:
committed by
Mathew Sutcliffe
parent
f0bfad40b7
commit
862794cb02
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user