Klaus Basan
8fb74f945b
[AFV] Ref T730, move voice settings into voice setup .h file
...
* same like we do for audio
* there was only one file in the settings subdir
2019-10-18 10:36:23 +02:00
Klaus Basan
58e2f35653
[AFV] Ref T730, use "%Application%" to split audio settings among core and UI
...
* both can have independent settings
* user report hanging core - this seems to fix it
2019-10-18 10:36:23 +02:00
Klaus Basan
6cbd2d9486
[AFV] Ref T739 remove unused old coreaudio arguments
2019-10-18 10:36:15 +02:00
Klaus Basan
a334b97ac6
[AFV] Ref T730, use callbacks for "connectTo", avoid EventLoop
...
* this is a pure asynchronous concept
* callbacks are called when network request "is done"
2019-10-16 17:40:33 +02:00
Klaus Basan
218c099456
[AFV] Ref T730, Ref T739, mutexes for some parts which still were NOT threadsafe
...
* connection object
* auto logoff if FSD terminates and voice client is still online
* "the server is full" is a good test case for the auto logoff,
FSD login fails, AFV login works, and needs to be terminated
IMPORTANT: using the mutex before login results in a situation where the EventLoop runs into a deadlock
See https://discordapp.com/channels/539048679160676382/623947987822837779/633338177922269224
2019-10-16 17:40:33 +02:00
Klaus Basan
1eb8ed463d
Minor UI glitch fixed
2019-10-16 17:40:32 +02:00
Klaus Basan
dc20359c76
Ref T741, typo
2019-10-16 17:40:32 +02:00
Klaus Basan
de75cdc214
[AFV] Ref T730 incorporated MS fixes
...
see https://discordapp.com/channels/539048679160676382/623947987822837779/633025547999510530
2019-10-16 17:40:32 +02:00
Klaus Basan
563e5d85be
Style
2019-10-16 17:40:32 +02:00
Klaus Basan
fc43199c32
[AFV] Ref T730, CPPCheck (e.g. virtual function call in ctor)
2019-10-16 17:40:32 +02:00
Roland Rossgotterer
abae20031d
[Linux] Package and install libsodium
2019-10-14 15:49:21 +02:00
Roland Rossgotterer
8616c0249e
Update externals
2019-10-14 15:47:04 +02:00
Klaus Basan
af2fb4933d
[AFV] Ref T730, init in/out dB values - avoid issue with unitialized values
2019-10-13 19:49:19 +02:00
Klaus Basan
7b368076ba
[AFV] Ref T730, make output buffer a pointer and avoid the buffer is connected multiple times with CAudioInputBuffer::frameAvailable
...
* discussion https://discordapp.com/channels/539048679160676382/623947987822837779/632921747171311616
* pass "whole" QAudioFormat to CAudioInputBuffer (not only channel count), maybe useful in future
* parent for buffer is required, removed default
2019-10-13 19:49:19 +02:00
Klaus Basan
e76bbbbca3
[AFV] Ref T730, COutput always needs a parent (threading) and minor adjustments
2019-10-13 16:47:42 +02:00
Klaus Basan
f4b22b839a
[AFV] Ref T730, utility functions to log QAudioFromat
2019-10-13 16:47:42 +02:00
Klaus Basan
73f191619a
[AFV] Ref T730, renamed to COutput
2019-10-13 16:47:41 +02:00
Klaus Basan
745eb01000
[AFV] Ref T730, pass channel count to input
2019-10-13 16:47:41 +02:00
Klaus Basan
f76448fbaf
[AFV] Ref T730, changed to "startedAudio" signal, relayed from CAfvClient (and not like before emitted in context)
...
Since start can be async (in another thread) it was possible the "old" signal was emitted too early
2019-10-13 16:47:41 +02:00
Klaus Basan
0a24d80291
[AFV], Ref T730 only startAudio and stopAudio
...
* start audio restarts if devices change
* restart no longer needed
* stop normally is only needed at the end of the lifetime of CAfvClient
* signal: startAudio
2019-10-13 16:47:41 +02:00
Klaus Basan
541ce76fb6
[AFV] Ref T730, check for same device
2019-10-13 16:47:41 +02:00
Klaus Basan
10a64c0330
[AFV] Ref T730, do NOT stop audio when disconnecting from FSD
...
* only disconnect from AFV server
* keep position tmer alive (preset values)
2019-10-13 16:47:41 +02:00
Klaus Basan
142be3cbd7
Ref T730, style
2019-10-13 16:47:41 +02:00
Klaus Basan
3880de5e0c
[AFV] Ref T730, added graceful shutdown in AFV client itself
...
Also disconnect from network during "shutdown"
2019-10-13 16:47:40 +02:00
Klaus Basan
d2de52f818
[AFV] Ref T730, use CoInitializeEx on windows for threaded CAfvClient
2019-10-13 16:47:40 +02:00
Klaus Basan
fe81843a5a
[AFV] Ref T730, use BlackMisc::singleShot to call deferredInit() in correct thread
2019-10-13 16:47:40 +02:00
Klaus Basan
e455d153ee
[AFV] Ref T730, make sure device is "valid"
2019-10-13 16:47:40 +02:00
Klaus Basan
ee1456ba37
[AFV} Ref T730, fixed CPPCheck issues and Artistic style applied
2019-10-13 16:47:40 +02:00
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