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.
- 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)
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.
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.
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.
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.
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.
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).
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.