Erik Hofman
47a910bccc
Make sure _avionics is enabled before calling suspend, this fixes a crash caused by the way AI models are handled now.
2012-03-31 11:45:28 +02:00
ThorstenB
bc9331fc3f
No avionics sound group for aimodels.
2012-03-22 23:53:18 +01:00
ThorstenB
7d37f6af58
Don't crash on start-up when avionics sound is disabled.
...
FGFX::init/soundfx::init use "_avionics" unconditionally, so it has to be
valid, even when avionics sound is disabled. Also allow to properly
enable/disable avioncis sound at run-time.
2012-03-22 23:36:39 +01:00
Erik Hofman
babe714de7
reaneble ai modeul sound effects
2011-12-12 10:49:09 +01:00
ThorstenB
7f5dfe1421
Provide error message when file isn't found.
2011-12-11 14:06:17 +01:00
Erik Hofman
61e60484c8
make the sound of the base model work again. this also gives an indication where things start to go wrong.
2011-12-03 15:29:04 +01:00
Erik Hofman
831f81d97c
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
2011-12-03 14:40:48 +01:00
Erik Hofman
ebcc6359b9
Initials sound support for AI models.
2011-11-25 13:39:10 +01:00
Erik Hofman
04395fa9a5
Postpone initialization of the avionics soundgroup until avionics are enabled. This prevents AI classes from creating new and unnecessary avionics sample groups.
2011-11-20 15:31:58 +01:00
Erik Hofman
64102d0da9
Allow for a different property root location besides '/'
2011-11-20 15:03:48 +01:00
ThorstenB
e9a9f8c96d
Use some more logging class variety.
...
Stop using SG_GENERAL and SG_ALL everywhere. Using different
classes makes switching the classes really useful...
2011-08-12 00:09:26 +02:00
James Turner
6c52a5ac85
Fixes for include-file flattening - condition.hxx no longer pulls in props or props_io
2011-07-30 10:47:28 +01:00
ThorstenB
4b74636d04
Avoid nuisance sound effects after sim-reset.
2011-03-19 14:51:39 +01:00
James Turner
8330449c5f
Pass current-dir into XMLSound
...
(and update to revised SGSoundSample ctor)
2010-09-06 09:28:28 +01:00
James Turner
ab495d1370
Add --fg-aircraft option, and aircraft dir path list. Partial support in places that load files, for respecting the setting.
...
Add helper to look for an aircraft branch path in multiple candidate locations.
Update the main subsystems to use the helper, and hence load from any aircraft dir.
2010-07-28 22:03:10 +01:00
ehofman
641f000860
Activate external-view checkbox for avionics
2009-12-09 08:16:48 +01:00
ehofman
c7ef67df80
add avionics enable/disable and volume control to the sound fx class.
2009-12-03 06:43:40 +01:00
ehofman
3a4892cede
New Property layout:
...
/sim/sound/enabled enable/disable the use of OpenAL
/sin/sound/pause master mute, effects all SampleGroups
/sim/sound/volume master volume
/sim/sound/effects/enabled enable/disable (mute) sound fx
/sim/sound/effects/volume effects volume
/sim/sound/chatter/enabled enable/disable (mute) atc chatter
/sim/sound/chatter/volume chatter (sample queue) volume
2009-11-29 15:57:37 +01:00
ehofman
934ce52a23
Tie samplegroup 'avionics' to the listener, just in case no other device is created that does it.
2009-11-19 23:09:49 +01:00
ehofman
2bc7dc685b
allow sound effects in the configuration file to be added to the 'avionics' sample group by setting '<type>avionics</type>'.
2009-11-10 06:55:46 +01:00
ehofman
b25940e1ea
Fix a number of small bugs; eg test if SoundMgr::load fails and return false in that case.
2009-10-20 00:00:08 +02:00
ehofman
1b08051597
SoundManager fixes
2009-10-17 14:02:46 +02:00
ehofman
b582c118bd
Correct (and verrified) position, orientation and velocity vector. Todo: proper sound orientation (the all face forward using the airplane orientation now) and disabling doppler effect when tied to the listener
2009-10-12 07:58:11 +02:00
ehofman
33e816abb9
Split up FGFX into a dedicated effects class (FGFX) and a sample queue class. Register the sample queue cass as 'queue' at the SoundManager and tie it to the listener position.
2009-10-08 10:38:10 +02:00
ehofman
86f462933d
Initial commit of the new sound system, expect more updates to follow
2009-10-06 10:22:09 +02:00
jmt
0dbf2de0b6
Remove audio update from main.cxx, back to FGFX (but keep the timing-dependent piece done artificially late)
2009-09-20 00:20:17 +02:00
jmt
3c84e07a25
FGFX clean-ups, conversion of one more sgVec user.
2009-09-19 12:10:17 +02:00
ehofman
e8db3a514a
Dont execute code in case the soundmanager isn't properly initialized
2009-09-09 08:56:32 +02:00
frohlich
8676c2bbd8
Replace the SGVec*::sg() methods with the equivalent SGVec*::data() calls.
...
Modified Files:
src/Traffic/Schedule.cxx src/Sound/fg_fx.cxx src/Main/main.cxx
src/Instrumentation/navradio.cxx
src/AIModel/AIFlightPlanCreateCruise.cxx
2009-09-09 08:56:30 +02:00
jmt
e1583cb28c
Update FGViewer position clients to work with SGGeod directly
2009-06-11 16:05:20 +02:00
frohlich
f14b69f9e6
Use the position from the model placement.
...
Modified Files:
src/Sound/fg_fx.cxx
2009-03-11 23:14:33 +01:00
fredb
0dd1c66f95
Really catch sound exceptions, and avoid exiting on this kind of error :
...
OpenAL error (AL_INVALID_VALUE): constructor (alBufferData)
Failed to buffer data.
2008-12-12 07:35:39 +00:00
ehofman
88b2ae1471
Don't update twice..
2008-09-05 11:48:08 +00:00
ehofman
a6f885b1fb
Move the soundmanager update code back to the main loop, just prior to updating all the SGSubsystems. Hopefuly this silves the sound problem.
2008-09-05 09:18:33 +00:00
ehofman
8d5de1659c
fix a last minute typo
2008-08-22 09:57:49 +00:00
ehofman
8bb5bf7c46
Nothing fancy, it all seemed to work properly already...
2008-08-22 09:50:22 +00:00
ehofman
da96156c30
Move SGSoundMgr stuff oevr to FGFX
2008-08-21 14:26:27 +00:00
ehofman
eccddb3dfd
Attached patches remove BORLANDC, and hence SG_MATH_EXCEPTION_CLASH and SG_INCOM
...
PLETE_FUNCTIONAL from SimGear and FlightGear.
As a result, SG_HAVE_STD_INCLUDES is now *always* set, so I will get the boring
fixes for that done, but separately. I'm still auditing the other things in comp
ilers.h - there's a lot that can die now BORLAND is gone.
2008-07-25 10:39:53 +00:00
timoore
fde0f8eb3c
segfault in fg_fx.cxx fix
...
Check for null fx node, submitted by Tiago Gusmão.
2008-01-17 08:28:43 +00:00
curt
c8986567ae
Syd Adams:
...
Patch to enable atc chatter (and any other arbitrary "message" audio file)
to be played at any specified volume. (Previously these messages were always
played at a hardcoded volume of 1.0)
2007-04-20 18:32:42 +00:00
mfranz
caa83238b8
fix spectacularly useless error messages
2007-03-29 21:26:33 +00:00
frohlich
573fb5a50a
Pigeons remaining 'crash on no sound device' fix.
2006-04-25 18:48:59 +00:00
frohlich
1aa1288620
Revert a part of the past patch. It still does not crash
...
but you can hear again the 737 ...
2006-04-23 18:44:22 +00:00
frohlich
aecfc1a229
Pigeon:
...
Avoid crashes if there is no sound device.
2006-04-23 15:29:39 +00:00
mfranz
c9813d1b5d
new FSF address
2006-02-21 01:16:04 +00:00
fredb
cc27909e6f
Catch sound exceptions at the earliest, report problem has an alert, and continue without segfaulting ( hopefully )
2006-02-12 19:57:57 +00:00
curt
c3cf810562
Another attempt at fixing a cygwin compiler error.
2006-01-10 15:23:10 +00:00
curt
ac5e874523
Fix a compiler warning (member initialization order in constructor.)
2006-01-10 15:06:17 +00:00
curt
311b85a11d
Small change to avoid dangling audio resources.
2006-01-10 14:51:12 +00:00
curt
5329ed10a7
Cygwin fix.
2006-01-10 02:49:52 +00:00