ThorstenB [Sun, 11 Dec 2011 12:55:56 +0000 (13:55 +0100)]
Add --log-class option, improve logging classes.
Replace SG_GENERAL by more specific log classes in many places.
Allow "," to separate logging classes (using "|" is odd on the
command-line).
Also add new option to make logging more useful for developers.
You can use:
--log-level=debug --log-class=environment
to only get environment debug messages, or
--log-level=debug --log-class=sound,ai
to only get debug messages related to the sound or AI subsystem.
ThorstenB [Fri, 9 Dec 2011 18:01:15 +0000 (19:01 +0100)]
#513: netgui alignment mismatching on 32bit/64bit machines
netgui data structure now is identical for all platforms. Manually aligned
the fields, so compilers do not add (CPU architecture-specific) padding.
ThorstenB [Fri, 9 Dec 2011 16:19:45 +0000 (17:19 +0100)]
Avoid useless warnings during FG startup.
Do not warn about missing scenery manager, unless it is really needed.
Also raise warn level for multiple init calls.
ThorstenB [Fri, 9 Dec 2011 16:06:19 +0000 (17:06 +0100)]
#510: Fix disappearing AIShips.
Untangle AI reinit and init methods. Some code in init hooks expects to be
called once only. Derived classes should not redirect their reinit to init,
even if this seems fine for the methods of the derived class itself. This
also triggers the init methods of all base classes, which may not expect
multiple calls to their init methods (or to "init" on "reinit").
ThorstenB [Sun, 4 Dec 2011 20:43:21 +0000 (21:43 +0100)]
Performance improvement
Avoid frequently creating/dropping an identical sound sample, when the
nav radio signal is flickering. Always keep most recent sound when signal
is lost (only stop it/turn volume off).
ThorstenB [Sun, 4 Dec 2011 16:18:02 +0000 (17:18 +0100)]
sound: fix sound-buffer-in-use issue
FGFX objects must be dereferenced early enough, and sound manager must be
removed late enough - otherwise openal complains about resources being
still in use when tryin to remove buffers.
Also: do not create FGFX objects for AI/MP aircraft, when AI sound is
disabled.
Erik Hofman [Sat, 3 Dec 2011 13:40:48 +0000 (14:40 +0100)]
Properly construct a string from another string and an integer, use a relative path for sound construction, allow enable/disable aimodel sounds using /sim/sound/aimodels/enabled
adrian [Tue, 29 Nov 2011 13:00:49 +0000 (15:00 +0200)]
Add separate fields for receiver and transmitter:
- antenna gain and cable losses will be set individualy
- Fix the calculations of the number of elevation points
- Improve clutter loss calculations to yield sane results
James Turner [Mon, 28 Nov 2011 18:23:34 +0000 (18:23 +0000)]
Re-structure the SimGear detection, to bypass shared-library checks by default (and unless explicitly requested). Should fix the confusion in the GUI tools about the type of SIMGEAR_LIBRARIES (i.e it should be a list, not a path).
ThorstenB [Sat, 26 Nov 2011 15:41:35 +0000 (16:41 +0100)]
cmake: fix sequence of (static) library dependencies
sgmath depends on sgprops, sgprops depends on sgstructure.
Also, core libraries are enough for fgadmin.
ThorstenB [Sun, 20 Nov 2011 15:20:05 +0000 (16:20 +0100)]
Introduce some structure in fgMainLoop.
- Move some code to sub functions.
- Make sound manager a subsystem-manager member (and make sure it's
still processed last).
Erik Hofman [Sun, 20 Nov 2011 14:31:58 +0000 (15:31 +0100)]
Postpone initialization of the avionics soundgroup until avionics are enabled. This prevents AI classes from creating new and unnecessary avionics sample groups.