1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 19:36:45 +02:00
Commit Graph

128 Commits

Author SHA1 Message Date
701c0e1e94 cleanup: Reduce the amount of "extern" in .c files.
There is no check at all that the types of externs actually match the
type of the definition. This just accidentally was not a problem, but now
the compiler helps a bit in keeping it that way.
2021-12-11 22:35:51 +00:00
8aa57b0539 Fix issue with audio VAD threshold
The default VAD was always being set to 0. We now use the
value provided by the config file if defined
2021-12-05 16:36:13 -05:00
2fcbc4fa1c Remove lots of duplicate code related to printing timestamps 2020-11-30 17:55:57 -05:00
312b38d253 A few small fixes
- Fix race condition in draw_peer()
- Handle realloc_peer_list() error
- Remove dead code in cmd_conference()
- Reduce scope of a few variable variables
- Fix possible buffer truncation in api.c
2020-11-19 14:23:32 -05:00
31f36318a2 Add config settings for audio channels 2020-11-18 16:29:01 -05:00
ba5ded9bc2 Use compound literals to zero out structs instead of memset 2020-11-14 00:00:05 +00:00
d75d6e8b60 sort includes 2020-11-14 00:00:05 +00:00
142ce642f0 Per-call pending status and state handling
* Proper handling of incoming video calls.
* Add command /vcall for initiating video calls
* Add command /res command to set video resolution
2020-11-14 00:00:10 +00:00
7dead5ec96 Implement simplistic VAD 2020-11-14 00:00:01 +00:00
ddcf224db2 Implement groupAV 2020-11-14 00:00:01 +00:00
daf794c4a2 Rework audio device handling
We now have at most one input and one output device open at any time,
but can have multiple capture callbacks and multiple output sources.
2020-11-14 00:00:01 +00:00
68e1ba312d Use compound literals to zero out structs instead of memset
This is cleaner and much less prone to bugs
2020-11-10 21:25:27 -05:00
91f194c821 Fix pointer use after free bug
If toxcore fails to end a call we still need to do a cleanup
2020-10-28 23:59:28 -04:00
6f72a191ba Revert "Add feature flags and missing #includes."
This reverts commit dd5fa236ae.

Also, set `-std=gnu99` in Bazel build.
2020-04-17 19:37:22 +00:00
dd5fa236ae Add feature flags and missing #includes.
These are needed to compile on some strict Linuxes.
2020-04-15 21:34:30 +00:00
98cb7f58c0 Fix unused parameter and unused result warnings 2020-03-15 14:57:00 -04:00
4b5a9abbd4 Fix A/V bug preventing the caller from being properly informed of call termination 2019-07-12 11:51:08 -04:00
c4a11f8dc7 Refactor ToxWindows
ToxWindow constructor functions now return pointers instead of structs
ToxWindow windows array now holds pointers instead of structs
Refactor some logic in windows.c pertaining to keeping track of active windows
Use uint8_t for window array indexing
2018-10-19 17:43:06 -04:00
0fea930c24 Convert deprecated uppercase enums to camelcase 2018-10-10 13:34:17 -04:00
63cc23401a Improve readability of defines 2018-10-08 13:39:04 -04:00
bebff3be0e Use (void) for empty parameter list in C. 2018-09-08 17:23:07 +00:00
20b5e46850 Rename callback implementations to be of the form on_$event.
So it's easy to map from implementation to the event without looking at
the `tox_callback_*` calls.
2018-07-18 17:06:28 +00:00
a37bf300f9 Update astylerc to match toxcore & reformat all source files 2018-07-18 11:33:16 -04:00
3cd2bc7e3c Don't compile A/V code if AUDIO/VIDEO are not #defined. 2018-07-06 15:46:12 +00:00
685837357b Add bazel build file for toxic. 2018-07-06 14:41:16 +00:00
a290f0f7f8 Update toxav API calls 2018-02-24 15:38:07 -05:00
b9f9546e2b Fix typedef enums and potential uninitialised value. 2018-01-20 18:30:35 +00:00
846bc4613e Fix comment 2017-11-20 07:07:24 -05:00
fe6a7074ea Dynamically allocate audio calls structure
This fixes a bug that caused a segfault when attempting to call a friend with a
friend number above the MAX_CALLS limit
2017-11-20 07:02:56 -05:00
e1bfa30769 Refresh device list on /lsdev. 2017-10-31 18:08:06 +02:00
2ede39369a added /bitrate 2017-07-07 23:47:59 +00:00
f056f13329 Astyle everything and add an astyle options script to repo 2016-09-24 21:07:04 -04:00
2ec180789b Fix crash on AV error call state during active call 2016-07-11 17:42:57 -04:00
4e0e322e32 Fix cross-client audio issue 2016-04-05 00:49:46 -04:00
3cb6db3d60 Remove pointless null check 2015-12-05 00:19:11 -05:00
b24c5d8cf8 Fix AV bug
Pending call now properly hangs up when you use the /hangup command or close the chat window
2015-11-19 23:49:58 -05:00
65c07a57db Properly close audio devices on quit 2015-11-12 17:14:10 -05:00
05f5f16af3 Fix various video bugs; it should be working now! 2015-11-12 05:01:28 -05:00
fa0e645a79 Fix a bunch of misc bugs and corner cases 2015-11-08 03:57:01 -05:00
49f5efaab0 A couple audio fixes (ugly but works)
- You will now receive an incoming call even if the caller's chat window is not opened
- Callbacks should all be working now
- Disable video command as video is currently broken
2015-11-03 20:36:41 -05:00
a5e5e98afc Disabled video calls for the time being 2015-11-03 23:50:01 +01:00
abfdbfe468 Fix some new AV api changes 2015-10-20 17:59:14 -04:00
1606d01158 Implemented video calls for OSX 2015-08-21 00:44:25 -05:00
e91aaf6c73 Refactoring to compliment OSX 2015-08-21 00:44:13 -05:00
929fca3de1 Prevented user from manually closing video windows 2015-08-21 00:44:12 -05:00
2cdcbc07a7 Fixed video call receiving issues 2015-08-21 00:43:30 -05:00
6e0d19b01d Refactored video calls 2015-08-21 00:42:57 -05:00
ad04fa4dcd Major refactoring and fixes towards AV 2015-08-21 00:42:28 -05:00
d359ba6a54 Fixed YUV stride issues 2015-08-21 00:38:44 -05:00
54e2fe8d6f Implemented video frames ready to send through ToxAV. NOTE: Contains YUV stride issues 2015-08-21 00:37:57 -05:00