Commit Graph

2475 Commits

Author SHA1 Message Date
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
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
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
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
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
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
4d3da8450f Fix namespace in template function 2019-10-11 19:00:46 +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
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
Klaus Basan
ca90a225e1 Ref T730, removed unused timer code in input 2019-10-11 19:00:45 +01:00
Klaus Basan
713d2ee626 Ref T730, Ref T739 avoid timer stopping issue during shutdown
* use timer with parent
* avoid QObject::~QObject: Timers cannot be stopped from another thread
* see https://discordapp.com/channels/539048679160676382/623947987822837779/630521007056224286
2019-10-11 19:00:44 +01:00
Klaus Basan
b0f1f5fae4 Ref T730, use physical unit 2019-10-11 19:00:44 +01:00
Klaus Basan
f69edff5c0 Ref T730, context shutdown
* virtual function for "about to shutdown"
* graceful shutdown
2019-10-11 19:00:43 +01:00
Klaus Basan
857e3581b0 Ref T730, style
* set object name
* use m_XYZ member name
2019-10-11 19:00:43 +01:00
Klaus Basan
c604ced11c [AFV] Ref T730, improved "locking"
* use more fine granular locks
* do NOT lock signals (when emit is used)
2019-10-11 19:00:43 +01:00
Klaus Basan
b802933422 Ref T730, use an event loop with parent "this"
* central function to get QEventLoop (this can also be used to set a timeout)
* do NOT use sApp as parent -> parent must be in same thread
2019-10-11 19:00:43 +01:00
Klaus Basan
401c89aa63 Ref T730, style and log messages 2019-10-11 19:00:42 +01:00
Klaus Basan
e30b690191 Ref T730, use Pointer<QEventLoop> loop to avoid issue with deleted references 2019-10-11 19:00:42 +01:00
Klaus Basan
9ddb55e79f Ref T731, Ref T739, adjusted launcher to only support "STANDALONE" and "DISTRIBUTED"
* the audio on core/GUI modes are no longer valid
* aligned the core mode enum
2019-10-11 19:00:42 +01:00
Klaus Basan
bcd97c3a60 Ref T731, correct UI audio messages 2019-10-11 19:00:41 +01:00
Roland Rossgotterer
b8661918d7 [AFV] Finalize blocking tone
Blocking tone is emitted if more than one station is received
in parallel.
2019-10-11 19:00:40 +01:00
Mat Sutcliffe
ec0a20b1d1 [AFV] Fixed context unittest that was broken by audio context changes 2019-10-11 19:00:40 +01:00
Mat Sutcliffe
b90855d393 [AFV] Fixed GCC and Clang errors 2019-10-11 19:00:40 +01:00
Mat Sutcliffe
712cc59dac [FSD] Fixed CContextNetworkProxy::relaySignals 2019-10-11 19:00:39 +01:00
Mat Sutcliffe
ad627fa351 [FSD] Fixed failing test and crashing test 2019-10-11 19:00:39 +01:00
Mat Sutcliffe
9aabd5db04 [FSD] Superfluous parentheses 2019-10-11 19:00:39 +01:00
Mat Sutcliffe
077476c138 [FSD] Style 2019-10-11 19:00:39 +01:00
Mat Sutcliffe
2dbc347bd7 [FSD] Doxygen 2019-10-11 19:00:38 +01:00
Mat Sutcliffe
6eb008c0a0 [FSD] Use forward declaration to reduce header interdependency 2019-10-11 19:00:38 +01:00
Roland Rossgotterer
d3a1eb1d60 [AFV] First version of threaded CAfvClient 2019-10-11 19:00:38 +01:00
Klaus Basan
d1006160f8 Ref T730, style 2019-10-11 19:00:37 +01:00
Klaus Basan
027dc50b69 Ref T739, avoid issues with binding during shutdown 2019-10-11 19:00:37 +01:00