Instead of requested port, print the actually bound port. This should
be the same except the situation when user requests the random port
(requesting port 0).
The options cannot be repeated for configure, like
`--enable-object=a --enable-object=b` to enable both a and b
(`--enable-object=a,b` is needed). This may be sometimes impractical,
when the command-line args are appended incrementally.
As a workaround, at least `--enable-output=all` is added. As it is not
a solution, it still (with `--disable-all`) removes most unneeded code
(with dependencies), while compiling all the non-essential objs without
deps.
- do not suggest synchronize on low-latency - this was actually incorrect,
because it is the vice versa (low-latency is already implicit for a
long time)
- for "low-latency" notice that it is not needed (implicit)
The default device name was not included in the list of device for
comparison, because the direction was not given. But we know the direction
both in capture and playback, so we can add it so that the default device
is recognized by name.
This also makes audio_ca_probe() more clear as a direction is always
capture or playback (-1 or 1).
\+ added some doxygen documentation
refer to GH-385
Replaced all other autoconf-defined platform macros (HAVE_LINUX and
HAVE_MACOSX, WIN32 already done) with those ones defined by compiler.
Not yet remove the definitions from autoconf, in case someone will use
the old macros anyways. Remove in future.
WIN32 is defined in config.h, which is now not included directly (althoug
it seems to be transitively). _WIN32 is defined by the compiler, so it
won't break if WIN32 happens not to be defined in MSW.
Options --param/-O and --verbose/-V are handled by common_preinit,
which needs to be taken into account:
1. verbose should not be handled again at all (already set; if otherwise
-V would effectively increase verbosity by 2, as with -VV)
2. param should be called second time - the first iteration sets only
opts known to that time (without modules that are not yet registered)
both changes are compatible with getopt in main.cpp
Instead of tweaking the getopt manually, use non-permuting version of
getopt (POSIX-compiliant, indicated by leading '+' in optstring).
This is slightly less error-prone and more readable. Althoug still a
bit tweaking is needed - skipping a non-opt (which can be in the middle
of argv if user cmd uses this syntax). Also options for opts that are
not recognized by this getopt (any aother than -O/-V) will appear as
a non-opt.