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
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
857e3581b0
Ref T730, style
...
* set object name
* use m_XYZ member name
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
Mat Sutcliffe
712cc59dac
[FSD] Fixed CContextNetworkProxy::relaySignals
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
66ea77d25f
Ref T739, removed voice room functions from context and UI
2019-10-11 19:00:37 +01:00
Klaus Basan
2a7633dc31
Ref T739, removed no longer used audio proxy functions (slots)
2019-10-11 19:00:36 +01:00
Klaus Basan
b3d8eddb26
Ref T739, empty context removed
...
Empty context will not work, as it would init a new audio client just before shutting down
2019-10-11 19:00:36 +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
09e65a2525
Ref T739, renamed CContext -> IContext
...
This reflects the purpose better, it is a base class for all context interfaces
2019-10-11 19:00:35 +01:00
Roland Rossgotterer
a2e3700739
Replace QAudioDeviceInfo with CAudioDeviceInfo where possible
...
QAudioDeviceInfo is a low level technical class, which shouldn't be used in higher level code. Remove it from all APIs
where possible and just create it in order to interface with QAudio
2019-10-11 19:00:31 +01:00
Roland Rossgotterer
8656131eb1
Remove all obsolete vatlib voice classes
2019-10-11 19:00:31 +01:00
Klaus Basan
6111c428e9
Ref T730, style and removed "old voice code"
2019-10-11 19:00:30 +01:00
Klaus Basan
cf6434f49b
Ref T730, fixed using wrong member "m_outputVolume", added new member "m_outputVolumeDb"
2019-10-11 19:00:23 +01:00
Klaus Basan
09b38b4e6d
Ref T730, function to check range for input/output volume
2019-10-11 19:00:22 +01:00
Klaus Basan
bde7baf84d
Ref T730, style
2019-10-11 19:00:21 +01:00
Klaus Basan
c1470f6069
Ref T730, removed voice vatlib
2019-10-11 19:00:20 +01:00
Klaus Basan
ced0004234
Ref T730, audio context (impl)
...
* removed voice room functions
* removed old voice classes
* aligned, so it can be used with CAfvClient
2019-10-11 19:00:01 +01:00
Klaus Basan
6071e77b7f
Ref T730, removed voice room related funcions from audio context
2019-10-11 18:59:59 +01:00
Klaus Basan
11275d3560
Ref T731, connected AFV client signals with UI
2019-10-11 18:59:57 +01:00
Klaus Basan
e21fdeb039
Ref T730, pass PTT key events to client
...
* currently passing from context to client, so context and client know the state
* PTT enum in own file so it can be reused
2019-10-11 18:59:55 +01:00
Klaus Basan
66b02e61c5
Ref T730, directly use context from sApp
...
* using sApp->getIContextOwnAircraft()
* no need to pass context, avoid issues when shutting down
* minor style changes
2019-10-11 18:59:53 +01:00
Klaus Basan
99edc9cb13
Ref T730, code style, adding namespaces
2019-10-11 18:59:45 +01:00
Klaus Basan
4a578110b0
Ref T731, adjusted audio settings for AFV and added functions in UI component
2019-10-11 18:59:11 +01:00
Klaus Basan
d944d0f6ee
Do not play QSoundEffect while it is still playing
...
* added m_playEffect as flag
* hooked up signals to reset the flags
2019-10-11 18:59:10 +01:00
Klaus Basan
5e3b758e44
Ref T732, renamed to CFsdClient adjustments
2019-10-11 18:59:05 +01:00
Klaus Basan
384aa3ce19
Ref T730, namespace for BlackCore::Afv
...
* added namespace
* removed some *.pri files and added files to blackcore.pro
* added copyright etc.
2019-10-11 18:59:02 +01:00
Roland Rossgotterer
b5a2f2ad13
AFV initial commit
2019-10-11 18:58:47 +01:00
Roland Rossgotterer
7030302e73
Cleanup audio context
...
Remove unused methods
Make methods only used in CContextAudio private
2019-09-18 13:50:41 +02:00