Commit Graph

117 Commits

Author SHA1 Message Date
Martin Pulec
0275d4e669 register_param: warn if max params reached 2022-05-02 16:12:25 +02:00
Martin Pulec
49eb5219a0 register_param: skip repeating registr. of param
Skip repeating registration of the same parameter.

This allows registration of the param from within more modules (eg.
common file included in multiple plugins). Warning is issued if already
registered param has a different description.
2022-05-02 16:12:25 +02:00
Martin Pulec
0de3402090 Do not load modules for run_tests
Modules are linked statically even for the modular build to test
executable.

See 1386ffe5
2022-03-18 08:52:32 +01:00
Martin Pulec
ae17f406e7 audio/video_offset: document vars 2022-03-04 16:27:49 +01:00
Martin Pulec
a6f80ec2dc common_preinit: Win - set output as UTF-8 2022-01-14 15:53:41 +01:00
Martin Pulec
31721d9200 parse_auduio_capture_format: be more user-friendly
- allow also comma as a delimiter (WLOG - comma cannot be part of
  current set of options)
- print token, that is not understood
- hint that "bps" must be in bits-per-second (% 8 = 0)
2022-01-06 13:56:48 +01:00
Martin Pulec
237f2becfe moved parse_audio_capture_format() to host.cpp 2022-01-06 13:56:48 +01:00
Martin Pulec
7add441e60 Updated version color to bright_blue 2021-11-09 10:43:08 +01:00
Martin Pulec
1b3b27eb7c Updated copyright dates for modified files 2021-11-08 15:43:14 +01:00
Martin Pulec
2e13a04dff Key control: print version
May be used for quick check if not running an obsolete UG during
runtime.
2021-11-01 09:20:44 +01:00
Martin Pulec
940399988a Lavd: option to dump decompressed frame 2021-10-22 09:21:52 +02:00
Martin Pulec
3b6a1dd160 main: decouple verbosity parsing to host.cpp 2021-07-09 10:20:13 +02:00
Martin Piatka
eab94c12c0 Remove some unused includes
Removes some unused includes reported by include-what-you-use
2021-06-08 15:22:25 +02:00
Martin Pulec
f8fd2f872e Logger: option to enable/disable timestamps 2021-05-26 16:15:39 +02:00
Martin Pulec
bb1405fad3 Added hint to disable output buffering in MSYS terminal 2021-05-21 13:43:56 +02:00
Martin Pulec
986606f1e7 Renamed error() to handle_error()
to avoid clashes with GNU function error()
2021-05-13 09:08:26 +02:00
Martin Pulec
644fa9b48a Added -T/--ttl parameter 2021-03-29 16:13:17 +02:00
Martin Pulec
66c82aa55d Allow -1 as a value for TTL
Causes TTL not to be set and default values will be used for both
mutlicast and unicast TTL.
2021-03-29 11:39:48 +02:00
Martin Pulec
013a031f05 Added TTL parameter
It currently sets muticast TTL.
2021-03-29 11:04:28 +02:00
Martin Piatka
cdf77ffe87 capabilities: Allow reporting an extra json object 2021-03-15 14:59:54 +01:00
Martin Piatka
2255a71d67 capabilities: Make video and audio devices consistent
The .id field previously contained the module name for audio devices,
while it only contained options for video devices. To make things more
consistent there are now two fields: "module" which contains the module
name and "device" which contains only the parameters.
2021-03-12 13:48:03 +01:00
Martin Piatka
47692ed051 capabilities: std::quoted for codecs 2021-03-09 14:39:44 +01:00
Martin Piatka
9938384929 GUI: Check if capabilities are complete and have correct version 2021-03-09 14:39:44 +01:00
Martin Piatka
356bd85d7e capabilities: report codec priority 2021-03-09 14:39:42 +01:00
Martin Piatka
14fcf70fb6 capabilities: report video compression codecs, encoders, options 2021-03-09 14:39:41 +01:00
Martin Piatka
eb7140de81 capabilities: Use std::quoted to escape quotes in strings 2021-03-08 14:25:33 +01:00
Martin Pulec
371146b393 Generate backtrace when crashed in Linux+mac 2021-02-23 15:09:03 +01:00
Martin Pulec
f1d0b1898d Hd-rum-translator: accept --param 2021-02-11 15:45:07 +01:00
Martin Pulec
bd552be430 Allow verbosity increase with -V
+ small updates
2020-11-05 09:30:15 +01:00
Martin Pulec
024494f4b8 Option to disable message repeats suppressing 2020-11-05 09:21:33 +01:00
Martin Pulec
a36d5a008e Rang: force control
In order to control sequences work with ostringstream logger.
2020-11-05 09:07:04 +01:00
Martin Pulec
89747981da audio_capture_channels is now 0 for default
Capturers may decide by themselves or capture DEFAULT_AUDIO_CAPTURE_CHANNELS
(as until now). This fixes default behavior of WASAPI with Realtek sound cards
that is unable to capture single channel.
2020-09-11 13:50:54 +02:00
Martin Pulec
81bed14603 Added low-latency-audio=ultra 2020-09-08 16:56:54 +02:00
Martin Pulec
cd1cfac5e6 Consider also tags/vXXX to be a release
Currently GIT_BRANCH refers to rather tag than release name, it would be needed
rather "git rev-parse --abbrev-ref HEAD" instead of "git name-rev --name-only
HEAD". But with shellow clones (as in GitHub) it would also require the
repository to be unshallowed.
2020-08-05 14:48:31 +02:00
Martin Pulec
b9ea962040 1.6+ branding 2020-07-29 10:40:11 +02:00
Martin Pulec
48895b0783 ADD_TO_PARAM: salt is no longer needed
UNIQUE_NAME is used instead of the salt
2020-06-09 14:02:37 +02:00
Martin Pulec
b688d0d41a macOS: init glut only when needed
Call macGlutInit just when GL context is requested. This slightly
improves a commit 887da0882. This causes that when macOS is headless
(eg. no logged user), glutInit (that will unconditionally fail) is
called no only if needed, not always.
2020-04-27 15:25:45 +02:00
Martin Pulec
887da08822 common_preinit: call glutInit in macOS
Call glutInit for macOS. This is rather a workaround to fix a problem
when running 'uv --capabilities' with RTDXT and Syphon. Initialization
of GLUT in Syphon then fails because glutInit is skipped since NSApp is
a non-NULL (from initialization of GL context). Further GLUT call then
fail.
2020-04-14 19:38:15 +02:00
Martin Pulec
0a2397444f Host: print_capabilities - preset count to 0
Preset count to 0 to prevent malfunctioning modules that doesn't set the
count (usually in case of error).
2020-02-19 16:32:15 +01:00
Martin Pulec
09f6bafc58 Coverity fixes 2019-11-22 13:54:51 +01:00
Martin Pulec
57be851c71 Again fixed repeatedly reported errors 2019-11-21 08:48:03 +01:00
Martin Pulec
110fc31ec6 Fixed again already fixed Coverity issues
Fixed thosed issued that were supposed to be fixed but Coverity
disagrees.
2019-11-20 15:54:03 +01:00
Martin Pulec
236f5b0589 Make: added target check and distcheck
+ added check for CppUnit
2019-11-19 08:22:50 +01:00
Martin Pulec
71efe75a3f dlclose opened libs 2019-11-19 08:22:50 +01:00
Martin Pulec
fa51f6e33c Fixed incorrectly fixed Coverity bugs 2019-11-12 22:34:18 +01:00
Martin Pulec
4c71573a89 Fixed first series of Coverity bugs 2019-11-09 17:20:37 +01:00
Martin Pulec
31d9809fcd Updated documentation
Updated authors, copyright to 3-clause BSD (where possible) and file-level Doxygen
2019-11-09 13:47:11 +01:00
Martin Pulec
447be38b31 Allow registration of should_exit observers
This should be more correct way than using the global should_exit
variable. Moreover, the observers like capturers doesn't need to
pool the should exit variable and can send signal themselves (that
may eg. trigger a CV).
2019-11-04 07:53:08 +01:00
Martin Pulec
a01ead9d19 RTP UDP: don't take SO_REUSEADDR/SO_REUSEPORT fatal
This may seldom occur in non-standard environment (eg. QEMU user mode
emulated ARM on x64) and its setting is not essential while UG may
normally proceed.
2019-09-11 15:46:17 +02:00
Martin Pulec
ad4665305b CoreAudio play.: use audio-disable-adaptive-buffer
Use common audio-disable-adaptive-buffer instead of
ca-disable-adaptive-buf which is marked as deprecated.
2019-08-30 15:23:31 +02:00