Commit Graph

50 Commits

Author SHA1 Message Date
Klaus Basan
32605cd557 [AFV] Finer granularity for inc./dec. volume (hotkey) 2020-06-12 18:42:53 +01:00
Klaus Basan
ea8198d26e [AFV] Allow to set the tx/rx values for the AFV client
Simplified function
2020-06-12 18:42:46 +01:00
Klaus Basan
e13dcd7d7d Fix for graceful shutdown to avoid "nullptr" issue
see https://discordapp.com/channels/539048679160676382/539925070550794240/694331123643187232
2020-06-12 18:42:42 +01:00
Klaus Basan
dab907df8c Graceful shutdown of SELCAL player with audio context 2020-06-12 18:42:41 +01:00
Klaus Basan
7d4e897b88 [AFV] Displayed sync. (integrated with COM unit) flag in cockpit 2020-06-12 18:42:40 +01:00
Klaus Basan
7f4a68eb45 [WASAPI] another WASAPI fix trial
* disabled the initWindowsAudioDevices call as it seems to be pointless
* changed the order in CContextAudioBase::initVoiceClient
* init CAudioDeviceInfoList::allDevices BEFORE CAfvClient

see https://discordapp.com/channels/539048679160676382/539925070550794240/687769623827185671
2020-06-12 18:42:37 +01:00
Klaus Basan
4d5e3ee0ae Init context devices deferred as the settings are ONLY available after DBus is initialized
* we init in a context constructor
* a this time it is not clear:
** if we will use a DBus scenario
** or standalone scenario
2020-01-22 19:46:14 +01:00
Klaus Basan
5542fcd7d3 Unified how settings are read in audio context 2020-01-18 02:46:56 +01:00
Klaus Basan
f8e8318902 Log.category for FSD and minor style changes 2020-01-07 19:57:27 +00:00
Klaus Basan
efee7968dc [AFV] Using the aliased frequencies can be enabled/disabled
* flag
* "dot command"
* register audio "dot commands" for audio
2020-01-07 19:57:20 +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
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
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
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
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
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
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
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
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
01d144b528 [AFV] Hide AFV client behind context 2019-10-11 19:00:52 +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
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
f69edff5c0 Ref T730, context shutdown
* virtual function for "about to shutdown"
* graceful shutdown
2019-10-11 19:00:43 +01:00
Klaus Basan
bcd97c3a60 Ref T731, correct UI audio messages 2019-10-11 19:00:41 +01:00
Roland Rossgotterer
d3a1eb1d60 [AFV] First version of threaded CAfvClient 2019-10-11 19:00:38 +01:00
Klaus Basan
ce772baf79 Ref T739, moved code for voice client to IContextAudio
* code can be used on both sides (UI/core)
* the lots become normal public functions
* the slots will be used for new DBus functions
2019-10-11 19:00:36 +01:00
Klaus Basan
13a2465424 Ref T609, encapsulate PTT action/key 2019-05-13 11:20:39 +02:00
Mat Sutcliffe
e9a4c49d68 Ref T547 Update license masthead in all source code files. 2019-02-22 20:36:43 +00:00
Mat Sutcliffe
6c05c5249d When calling arg() on a QString constructed from a literal, use QStringLiteral. 2019-02-22 20:23:47 +00:00
Klaus Basan
93909171b6 Ref T192, init for P2P via CDBusServer::coreServiceName(connection) 2017-12-21 19:47:03 +01:00
Klaus Basan
31237b758e Ref T195, audio utility function 2017-12-21 19:45:41 +01:00
Klaus Basan
7a87f986e2 Ref T167, renaming LocalInDBusServer and verifyModelSet 2017-10-10 00:27:17 +01:00
Klaus Basan
08f6f3f81c refs #912, icon and identifier for PTT hotkey as static functions 2017-04-18 00:04:39 +01:00
Klaus Basan
d782839cb8 refs #703, moved context to subdir
* ns: Context
* adjusted using classes
2016-07-14 18:49:08 +02:00