Commit Graph

461 Commits

Author SHA1 Message Date
Klaus Basan
59c6a7ad93 [FSD] Avoid that all matchings are triggered "at the same time"
* the signal from CAirspaceMonitor is connected internally
* this signal is closely related to receive the FSD ICAO data
* and then it is emitted from the context again but staggered
2020-01-07 19:57:19 +00:00
Klaus Basan
441ca41ee3 [FS9] Log. messages 2020-01-07 19:46:18 +00:00
Klaus Basan
d8ec308a3b [DBus] DBus related fixes
* use INT in CAudioDeviceInfo (minimum trouble)
* register metatype
* removed getSimulatorStatusEnum from DBus slots
2020-01-07 19:46:17 +00:00
Klaus Basan
0a1835f1a5 [AFV] Ref T739, register used AFV callsigns
For core/GUI we need to register with 2 different callsigns
2020-01-07 19:46:17 +00:00
Klaus Basan
53de0d56b9 Style 2020-01-07 19:46:17 +00:00
Klaus Basan
87f078a698 [AFV] Ref T731, Ref T739 register devices so we can also obtain remote devices 2020-01-07 19:46:15 +00:00
Klaus Basan
8a89b8f261 [AFV] Ref T739, context function to unregister per identifier 2020-01-07 19:46:15 +00:00
Klaus Basan
209c00b430 Style 2020-01-07 19:46:14 +00:00
Klaus Basan
275173c383 [Doxygen] workaround to silence audio context Doxygen error, no idea why this was wrong 2020-01-07 19:05:43 +00:00
Klaus Basan
a9a772c929 [AFV] Ref T739, audio context default device handling 2020-01-07 19:05:42 +00:00
Klaus Basan
5150fb4e86 [AFV] Ref T739, cmd.line args for "no audio" 2020-01-07 19:05:42 +00:00
Klaus Basan
0fa9bcb520 Doxygen, style 2020-01-07 19:05:42 +00:00
Klaus Basan
9447db00bc [AFV] Ref T739, audio can now be disabled from UI 2020-01-07 19:05:41 +00:00
Klaus Basan
767b999330 [AFV] Ref T739, start/stop audio improvements
* signals
* "restart" without devices
2020-01-07 19:05:40 +00:00
Klaus Basan
5032e7fbd5 [AFV] Ref T739, fix for tuned in/out sounds
see https://discordapp.com/channels/539048679160676382/568904623151382546/636639367804485643
2019-10-24 02:34:40 +02:00
Klaus Basan
cde18d23aa [AFV] Style, Doxygen 2019-10-24 01:22:56 +02:00
Klaus Basan
6e42889ecb [AFV], Ref T730 only use AFV with VATSIM ecosystem 2019-10-23 00:38:26 +02:00
Klaus Basan
a63fe0dc21 [AFV] Ref T739, unified callsign functions in CAfvClient
* improved CallsignSet from QStringList
* renamed the functions which just return a string
* added functions for CCallsignSet
2019-10-23 00:38:26 +02:00
Klaus Basan
164e9a3306 [AFV] Ref T730, fixed some FSD client issues
* socket error signal (can be used for further actions)
* socket error logs as CLogMessage::error
* handle socket errors in own function, disconnect for severe error
* send homebase at login
2019-10-23 00:38:26 +02:00
Klaus Basan
7428cb0819 [AFV], Ref T730 play audio "tuned in"/"out"
Replaces the former voice room connected sounds
2019-10-23 00:38:26 +02:00
Klaus Basan
be99911372 Style, minor adjustments 2019-10-23 00:38:26 +02:00
Klaus Basan
afe72b029f Doxygen/style 2019-10-23 00:38:24 +02:00
Klaus Basan
aaa5fc259a Doxygen 2019-10-18 12:10:55 +02:00
Klaus Basan
35cdaf09bf Style 2019-10-18 10:36:25 +02:00
Klaus Basan
2dbe8464f4 [AFV] Ref T739, CoInitializeEx main thread of CAfvClient 2019-10-18 10:36:24 +02:00
Roland Rossgotterer
2362e25593 [AFV] Add client version to API auth 2019-10-18 10:36:24 +02:00
Klaus Basan
f980fd02d5 [AFV] Ref T739, check if COM integration is used and make sure to use TX/RX defaults if NOT
There was a bug that COM integration was used although it was disabled
2019-10-18 10:36:24 +02:00
Klaus Basan
725a798cba [AFV] Ref T739, removed unused code 2019-10-18 10:36:24 +02:00
Klaus Basan
8ecfd8f23d Ref T739, workaround to hide "local signals" from Dbus registration
Directly using CAfvClient signals - a scenario we actually want to avoid
2019-10-18 10:36:24 +02:00
Klaus Basan
8d956436e7 [AFV] Ref T739, use the Audio base class with the shared CAfvClient functions 2019-10-18 10:36:24 +02:00
Klaus Basan
383352f79c [AFV] Ref T739, remove implementation details from IContextAudio to keep the DBus interface "pure"
* This was an approach to avoid registration of "local signals"
* that part DID NOT work as planned, as all object's signals are registered
* the refactoring itself nevertheless is NOT a bad idea and has been kept
* as the audio context has this special "concept" and CAfvClient can run on both sides (proxy AND impl.side)
2019-10-18 10:36:23 +02:00
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
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
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
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
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
Roland Rossgotterer
11ee2413b5 Doxygen 2019-10-11 19:40:42 +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
Roland Rossgotterer
01d144b528 [AFV] Hide AFV client behind context 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
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
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
9d172c3d7d [AFV] Do gracefull shutdown in IContextAudio destructor 2019-10-11 19:00:47 +01:00