Commit Graph

8709 Commits

Author SHA1 Message Date
Klaus Basan
886ae4cf68 [AFV] style, const, formatting 2019-10-13 16:47:40 +02:00
Klaus Basan
a9166d4e4c [AFV] Ref T730, improved volume handling
* for the asymmetric output volume -60/18dB, make sure that normalized 50 means 0dB
* slider is centered
* return value if value for volume was changed
2019-10-13 16:47:40 +02:00
Mat Sutcliffe
a726c7709e [AFV] Fixed compiler warning 2019-10-13 00:16:07 +02:00
Roland Rossgotterer
be4d40ba7d [AFV] Check client started in the correct thread 2019-10-12 13:30:00 +02:00
Roland Rossgotterer
7951b9f15d Remove quickwidgets dependency from swiftguistandard
Even though it is not used, MacOS clang decided to link it
anyway and require the library at runtime.
2019-10-12 13:25:42 +02:00
Mat Sutcliffe
b929eb442a [AFV] CContextAudio::m_voiceClient is a raw pointer, and CAfvClient doesn't have a parent 2019-10-11 19:40:43 +01:00
Klaus Basan
2468b2ee49 [AFV] Ref T739, fixed typos, style and Doxygen in contexts 2019-10-11 19:40:43 +01:00
Klaus Basan
8622b7b583 Doxygen 2019-10-11 19:40:43 +01:00
Klaus Basan
7e22318a6e [AFV] Ref T730, made OPUS decoder not copyable/assignable (avoid resource conflicts) 2019-10-11 19:40:42 +01:00
Roland Rossgotterer
11ee2413b5 Doxygen 2019-10-11 19:40:42 +01:00
Roland Rossgotterer
2c89275ea6 [AFV] Remove unused constants 2019-10-11 19:40:41 +01:00
Klaus Basan
30baa12a86 Ref T730, CPP check issues fixed 2019-10-11 19:40:41 +01:00
Klaus Basan
1d9cd50463 [AFV] Fix context UNIT test crash
* crash: A crash occurred in C:\jenkins\workspace\swift_wip_fsd_and_afv_client\build\out\release\bin\testcontext.exe.
* ASSERT in const QList<QAudioDeviceInfo> allQtDevices2 = QAudioDeviceInfo::availableDevices(QAudio::AudioInput)
* figured out it fails in a Qt console app, runs in a widget app
* see https://discordapp.com/channels/539048679160676382/623947987822837779/631939335255752704
2019-10-11 19:00:54 +01:00
Klaus Basan
e109106102 Ref T739, functions to register devices (will be used by DBus/proxy) 2019-10-11 19:00:53 +01:00
Klaus Basan
fdf4bf6b57 Ref T739, added proxy functions for audio context to register devices (from multiple machines) 2019-10-11 19:00:53 +01:00
Klaus Basan
c38c8374a3 Style 2019-10-11 19:00:53 +01:00
Klaus Basan
f15674330f [AFV] Ref T739, we are checking "connected" already, no need to check it again 2019-10-11 19:00:53 +01:00
Klaus Basan
e3ed71a919 Ref T739, minor fixes (mutex, "myself") 2019-10-11 19:00:53 +01:00
Mat Sutcliffe
57ff07592a [AFV] CInputManager stores icon indexes instead of QPixmap instances
The GUI converts icon indexes to QPixmap indexes when needed.
This fixes the context unittest that was broken by audio context changes.
2019-10-11 19:00:52 +01:00
Roland Rossgotterer
01d144b528 [AFV] Hide AFV client behind context 2019-10-11 19:00:52 +01:00
Roland Rossgotterer
90e5400049 [AFV] Do not attempt to send if not connected 2019-10-11 19:00:52 +01:00
Roland Rossgotterer
30d764d72c Style 2019-10-11 19:00:51 +01:00
Roland Rossgotterer
8367559713 Doxygen 2019-10-11 19:00:51 +01:00
Klaus Basan
1222f425b0 Style 2019-10-11 19:00:51 +01:00
Klaus Basan
11a3fa873d Ref T730, Ref T739, first implementation of "Mute" for CAfvClient 2019-10-11 19:00:51 +01:00
Klaus Basan
b632232566 Ref T730, fixed from "normalized value calculation" 2019-10-11 19:00:51 +01:00
Klaus Basan
966b261c0d [AFV] Ref T730, reverted fix NOT to start in function CAfvClient::restartWithNewDevices 2019-10-11 19:00:50 +01:00
Klaus Basan
98726e4c06 Ref T730, Ref T739, as follow up of RR's fix, use a default device if device name is NOT found
* it can happen the name is empty, or becomes invalid
* an invalid name is a device which has been unplugged
2019-10-11 19:00:50 +01:00
Klaus Basan
47475f1a18 Ref T730, allow to specify a default value -> findByNameOrDefault 2019-10-11 19:00:50 +01:00
Klaus Basan
fc70767636 Ref T730, initially update cockpit UI values "after some time", just to make sure the UI refelcts the context state 2019-10-11 19:00:50 +01:00
Klaus Basan
10f696d558 Ref T730, in emulated driver only use frequencies from COM, do NOT override the tx/rx values 2019-10-11 19:00:49 +01:00
Klaus Basan
ef9e7b0bf1 Ref T730, Ref T739 update from own aircraft in one step
* update all values from own aircraft in "one step"
* rational: avoid "single property" updates and numerous round trips (signals, transceiver updates)
* also allow updates of not yet connect, as "a kind of preset"
* do NOT send to network if not authenticated
2019-10-11 19:00:49 +01:00
Klaus Basan
caa78395a9 Ref T730, allow to init TxTransceiverDto from TransceiverDto 2019-10-11 19:00:49 +01:00
Klaus Basan
1ceac51771 Encode HTML messages, reported as bug in Discord 2019-10-11 19:00:49 +01:00
Klaus Basan
8a2d3458b4 Ref T739, MacOS only mic. access style using #ifdef
Although not required, "hide" mm code on other platforms
(avoid CLANG warnings in QtC)
2019-10-11 19:00:49 +01:00
Klaus Basan
f81a9e8447 Ref T730, Ref T739, make sure transmitting receivers are correct
* deferred init, make sure values from context are used (if possible)
* only use 1 transmitting transceiver
2019-10-11 19:00:48 +01:00
Klaus Basan
160589c975 Ref T731, initally also update UI with "onUpdatedClientWithCockpitData()" 2019-10-11 19:00:48 +01:00
Klaus Basan
ff33b59683 Ref T739, make member of CAfvClient a "pointer"
* we can use forward declaration for m_voiceClient
* make IContextAudio -> BlackMisc::CIdentifiable
* removed delayedInitMicrophone, RR will move it to another place
2019-10-11 19:00:48 +01:00
Roland Rossgotterer
3bf4eda702 [AFV] Start audio with configured device or default 2019-10-11 19:00:48 +01:00
Roland Rossgotterer
3792c4fa76 [AFV] Do not restart audio if it was not started yet 2019-10-11 19:00:47 +01:00
Roland Rossgotterer
9d172c3d7d [AFV] Do gracefull shutdown in IContextAudio destructor 2019-10-11 19:00:47 +01:00
Roland Rossgotterer
4827c0e4ab [AFV] Request permission to access microphone on MacOS 2019-10-11 19:00:47 +01:00
Roland Rossgotterer
9f276c8dbf [AFV] Update installer 2019-10-11 19:00:46 +01:00
Roland Rossgotterer
4d3da8450f Fix namespace in template function 2019-10-11 19:00:46 +01:00
Roland Rossgotterer
139690457d [AFV] Temporarily disable AFV Map in swiftguistd 2019-10-11 19:00:46 +01:00
Roland Rossgotterer
18821c2a30 Fix networkOperationToString 2019-10-11 19:00:45 +01:00
Klaus Basan
d3c0e75248 Ref T730, added voice server setup (settings for server URLs) to context 2019-10-11 19:00:45 +01:00
Klaus Basan
2123529fd8 Ref T730, Ref T731 update voice server setup to AfV URLs (formerly UDP ports) 2019-10-11 19:00:45 +01:00
Klaus Basan
e485824bfc Ref T730, allow to update voice server URL 2019-10-11 19:00:45 +01:00
Klaus Basan
c842820267 Ref T730, consider settings for clikc/block sounds and log categories 2019-10-11 19:00:45 +01:00