1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
Commit Graph

128 Commits

Author SHA1 Message Date
sudden6
9499925fb2
fix(coreav): cleanup assertions
It doesn't really make sense to assert that the callbacks are coming
from any other thread than CoreAV, when we actually want to ensure the
callback is coming from Core thread.

Remove over agressive assert from sendGroupCallAudio(...), this function
should be callable from any thread.
2020-01-29 22:22:18 +01:00
sudden6
98cfe9838f
refactor: properly lock against Core thread
We we're calling toxav_* functions without synchronizing to any of the
Tox threads.

Additionally remove the call timeout, it creates timers from different
threads, which causes errors.
2020-01-29 22:22:18 +01:00
sudden6
29f659c659
feat(coreav): add assertions to check for threading errors 2020-01-29 22:22:18 +01:00
sudden6
c332cc0cca
refactor(coreav): simplify start sequence 2020-01-29 22:22:17 +01:00
sudden6
2bc0057bbd
refactor(coreav): move threading of CoreAV to single mutex
Use a standard mutex instead of trying to build proper locking
ourselfes.
2020-01-29 22:22:17 +01:00
Anthony Bilinski
6179250458
Merge branch 'v1.17-dev' 2019-11-11 17:38:02 -08:00
Mick Sayson
87eed97ab3
fix(calls): Fix SIGSEGV on quit while in call
On application close we used to access invalid memory associated with
the audio subsystem. This was because on destruction of static variables
we tried to access state associated with an already destructed item.

These variables seem to have no good reason to be static. They should be
tied to a single CoreAV instance and are only accessed through an
existing CoreAV instance.
2019-11-11 17:19:21 -08:00
jessica181920
11b34c84ef fix(i18n): Various English fixes
Consistency, typos, grammatical corrections, capitalization, punctuation,
etc.
2019-09-14 15:00:59 -04:00
sudden6
909deb0feb
fix: remove reconnect button
The button didn't work that well and caused all kinds of issues inside
the code, so I replaced it by a notice that changes to the Advanced
settings only apply after a restart of qTox.

In the process I also removed all code that was exclusively used for
that feature.

We may add it back later when qTox's internal architecture makes it less
cumbersome.
2019-08-28 16:36:09 -07:00
jenli669
04a9bc46f4
docs(copyright): update and add copyright info
zealously updates and adds qTox copyright information.

Fixes #5713
2019-06-28 01:18:26 +02:00
sudden6
22362d2940
refactor(audio): Remove Audio singleton
This commit finally removes the Audio singleton and allocates the audio
backend in main.cpp.
2019-05-21 21:05:27 +02:00
sudden6
a8546fe8cb
refactor: use smart pointer instead of raw pointer 2019-04-26 16:26:57 +02:00
sudden6
5b908184fc
refactor(audio): move audio output to new IAudioSink interface 2019-04-25 21:30:19 +02:00
sudden6
b7b9b58d42
refactor: make ToxCall non-moveable
We don't need move functionality and the code for it is complex and
error prone.
2019-03-17 19:32:34 +01:00
Anthony Bilinski
13afbf7ec6
fix(groups): avoid having to lookup peer pk
Caused race where peer plays audio, then is removed from group, then we
process audio played signal and lookup their peerId in core where it
doesn't exist. Now Group will effectively contain the peer until the
peer list changed slot is processed.

Partial fix for #5511
2019-01-29 08:30:39 -08:00
Anthony Bilinski
8422c09f6a
fix(groups): don't invalidate all audio sources when peer list changes
Fix #5508
2019-01-27 23:13:11 -08:00
Anthony Bilinski
ec07fd7291
feat(groups): show who is in a group call before joining
Fix #5507
2019-01-27 15:57:38 -08:00
sudden6
7fa2dfead5
refactor(coreav): move CoreAV to the factory pattern too
- clean up error handling during construction of the Core
- prevent leaks by using unique_ptr
2018-10-25 08:06:19 +02:00
sudden6
2ab081b4a9
refactor: remove support for c-toxcore < 0.2.0
This code is only a maintainance burden and not used anymore.
2018-10-25 07:48:21 +02:00
sudden6
26206a35eb
fix(core): ensure QTimers are moved with the objects they belong to
We use the Qt parent/child model instead of unique_ptr to achieve this.
2018-10-07 20:12:33 +02:00
sudden6
a139a9933b
refactor(core): cleanup thread and timer destruction in Core and CoreAV 2018-09-24 16:57:53 +02:00
Anthony Bilinski
cc6df2c294
chore(core): use new toxcore enum typenames
Fix #5287
2018-09-17 10:40:07 -07:00
sudden6
24e7c4efd4
refactor(core): format code 2018-07-05 17:10:26 +02:00
sudden6
7f7b29e55e
refactor(core): use smart pointers instead of raw pointers 2018-07-05 17:05:41 +02:00
sudden6
40d30153ae
fix(audio): fix error introduced in 67f2605971 2018-07-02 15:34:24 +02:00
sudden6
67f2605971
refactor(toxcall): move peer handling to ToxGroupCall 2018-07-01 10:16:21 +02:00
tox-user
2fae2a30f7
feat(chat): add UI option to mute group peers
Implements #4596, #4626, #1007

Adds a context menu to every peer label in group chat with an
option to mute chosen peers, which adds them to the blacklist.
Mutes audio of blacklisted group peers.
2018-06-02 18:05:45 +00:00
Anthony Bilinski
5dc4e6de81
chore(legal): update copyright date to 2018 for all source files 2018-04-25 17:33:38 -07:00
Anthony Bilinski
9216549d6e
refactor(call): Refactor toxcall and disconnect lambda on destruction
Fixes #3840

Move audio and video state into ToxCall which both ToxFriendCall and ToxGroupCall inherit from
2018-04-04 01:32:00 -07:00
sudden6
d3d81bbdf3
feat: update to the new c-toxcore 0.2.0 conferences api
The old functions are disabled at compile time and should be removed
later.
2018-02-24 09:57:42 +01:00
Diadlo
d2deec7c55
fix(core): Use new callback API for bitrate set 2018-01-31 09:39:43 +03:00
Diadlo
2c8f03dada
fix(core): Use new API for bitrate set
Fix #4935
2018-01-31 00:01:52 +03:00
anthony.bilinski
1394dd1b7f fix(call): fix bugs introduced from ToxCall refactor
-inverted call active booleans
-audio subscription leak on move assignment
-NullVideoBitrate check
-return peers list by reference so that adding audio source in GroupCallCallback is persisted
-fix output muting for friend calls
2017-11-02 13:41:44 -07:00
sudden6
967dab8700
style: run format-code.sh on the files 2017-10-31 09:32:53 +01:00
sudden6
90bf0a7e2c
refactor(toxcall): make toxcall a class with getters and setters 2017-10-31 09:32:53 +01:00
sudden6
b07ea763cd
refactor(toxcall): remove callId from ToxCall members 2017-10-28 11:47:56 +02:00
sudden6
ed4b063994
refactor(coreav): replace IndexedList with std::map 2017-10-28 11:47:51 +02:00
anthony.bilinski
1613044c68 fix(video): Set toxav video bitrate to 0 if answering audio-only call
Before we would set the video bitrate to 0 if sending an audio-only call, but we would still set the video bitrate to default when receiving an audio only call. In bad network conditions, this caused tox to ask us to decrease video bitrate in audio-only calls.
2017-10-19 12:18:44 -07:00
tox-user
7ed2d97aad feat(settings): make audio quality setting persistent 2017-09-29 12:33:30 +02:00
tox-user
61eddc1f6b feat(settings): Add audio quality setting
Fixes #4693
2017-09-28 16:14:36 +02:00
Diadlo
99ebb73562
refactor: Remove deprecated methods to get id 2017-08-06 13:55:02 +03:00
Diadlo
017653470d
refactor: Move friend and group in model directory 2017-08-06 13:55:02 +03:00
tWido
ac75f7b594 feat(video): Error message on call fail
notifies user if call ended unexpectedly
2017-07-23 21:19:06 +02:00
Zetok Zalbavar
80f5de31b3
style: reformat current C++ codebase using clang-format 2017-02-26 11:52:45 +00:00
agrecascino
62ac480171 fix(audio): alternate audio fix implementation from #4139 2017-02-07 15:44:35 -05:00
Diadlo
320099faf8
fix(chatform): Add ability to cancel call
Fix #4016.
2017-01-29 00:37:31 +03:00
Diadlo
29bb319025
refactor(friend): Small refactoring
Method renamed to be same with `Group` i.e. `getGroupId`, changed Friend
eventFlag type on bool
2017-01-05 00:56:32 +03:00
Zetok Zalbavar
d4ac13dbf4
revert: "refactor: Added to include path and exclude it from all includes"
Revert needed, since otherwise there is no way to do automatic sorting
of includes.
Also reverted change to the docs, as leaving it would make incorrect
docs.

In case of conflicts, includes were sorted according to the coding
standards from #3839.

This reverts commit b4a9f04f92.
This reverts commit 5921122960.
2016-12-29 16:10:53 +00:00
Diadlo
4f9cb0b008
refactor: rename args to conform to C++11 § 17.6.4.3.2
Fixed typo and small style improvements.
2016-12-19 01:08:33 +03:00
Diadlo
3c304c50bc
refactor(core): Added error handling 2016-12-19 00:42:54 +03:00