ehofman
0238a09c4d
skip voice delimiter (messages).
2009-12-30 10:29:41 +01:00
ehofman
2a53154e0f
Stuart Buchanan: Properly catch an exception.
2009-12-30 10:29:05 +01:00
ehofman
90e44c6696
Display the (default) OpenAL renderer as well as the OpenAL vendor when requesting the list of sound devices.
2009-12-27 09:33:14 +01:00
ehofman
61ffbf4615
activate atc settings in the sound mixer dialog
2009-12-12 00:12:19 +01:00
ehofman
641f000860
Activate external-view checkbox for avionics
2009-12-09 08:16:48 +01:00
ehofman
168dc6ff92
if volume is too low, skip the function entirely
2009-12-09 08:16:39 +01:00
ehofman
0dc35c8d38
John Denker:
...
Suggestion: It might be helpful to promote each of
the .c files to .cxx.
Rationale:
-- The configure/makefile system handles CFLAGS
differently from CXXFLAGS.
-- It is important for the *info programs to
compiled and run in exactly the same environment
as the main fgfs program. Some users depend on
compiler or linker flags such as rpath that
strongly affect the results of the *info programs.
-- There is no downside; you code compiles just
fine as-is under the c++ compiler.
second part of the original commit, for ehofman/sound
2009-12-09 08:15:37 +01:00
Tim Moore
6324d5a03d
Change int to unsigned in sound device traversal
2009-12-07 06:59:04 +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
e657a53b32
Turned out a tied proeprty can't be used as a user archive, use a different one
2009-12-01 19:12:56 +01:00
ehofman
86cd525200
update to allow selection of a new sound device
2009-11-30 22:45:33 +01:00
ehofman
fde1a925fe
Change of thoughts since it makes life easier:
...
/sim/sound/working enable/disable the use of OpenAL
/sin/sound/enabled master mute/unmute
2009-11-30 22:45:23 +01:00
ehofman
64de526267
Fix for older OpenAL versions.
2009-11-30 22:45:07 +01:00
ehofman
a3b66adf51
add a new command line option: --show-sound-devices
2009-11-30 22:44:57 +01:00
ehofman
b4b3f62717
add alcinfo instead.
2009-11-30 09:38:57 +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
3abb7afa45
List all available playback devices under '/sim/sound/devcies'
2009-11-29 15:57:17 +01:00
ehofman
ef4814599d
* Fix --disable-sound
...
* Add a new command line option: --sound-device=""
This makes OpenAL use the sepcified audio device instead of the default
output device. (Look for playback devices when calling openal-info of alcinfo)
2009-11-29 15:57:02 +01:00
ehofman
3d19352f13
proper listener velocity calculation, this has no effect yet but is required when other models start emitting sounds.
2009-11-24 14:22:54 +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
97db69cf8f
restore listener position with offset
2009-11-19 21:03:05 +01:00
jmt
33058511de
Dave Perry:
...
Allows using a nasal filter to smoothly park the gs needle when out
of range or frequency changes to a station w/o gs.
2009-11-15 01:31:42 +01:00
ehofman
0578b06a0c
temporarily remove listener (viewer) and source offsets. they mess things up
2009-11-12 23:01:41 +01:00
ehofman
96b7939947
put the debugging quat strings as doubles under /sim/current-view/debug instead.
2009-11-11 17:49:42 +01:00
ehofman
769bac95e3
put the debugging quat strings as doubles under /sim/current-view/debug instead.
2009-11-11 17:49:42 +01:00
ehofman
742aec2f32
Pass the north-east-down velocty directly to the sample_group and do the calculations there.
2009-11-10 16:29:51 +01:00
ehofman
db3a4b0753
fix a typo
2009-11-10 06:56:16 +01:00
ehofman
d5b9f552dd
Add a description of the 'type' tag
2009-11-10 06:56:05 +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
Tim Moore
8117134879
don't define constant objects in header files
2009-11-09 10:24:46 +01:00
ehofman
e750dc368d
John Denker:
...
Together with previous patch, make view reference frame, view offset,
and current view visible in property tree.
Also some comments about the concepts behind these variables.
2009-11-09 10:07:42 +01:00
Csaba Halasz
b8f5013751
Added some null pointer checks in FGAILocalTraffic to handle airports without tower
2009-11-07 07:54:18 +01:00
ehofman
ab149d0036
John Denker:
...
Add a view debugging functions and represent the viewer quats in the property tree for debugging.
Do a nontrivial calculation, demonstrating how to find the 12:00 orientation given the view and the view offset. it, and observe that the 12:00 direction does not change when you change the view offset, which is a nontrivial result.
Erik: This already proved to be useful since I now obserbed that the sky and fog coloring code depends on view offset rather that the view orientations. This is why those effects are out of line in some views.
2009-11-05 16:27:58 +01:00
ehofman
c8430ce104
I really have no idea why but the velocity should be 100 times larger than feet-per-second suggests to work properly. oh and change sign
2009-11-04 23:14:54 +01:00
ehofman
342744fddb
Use the proper absolute position for the listener
2009-11-04 23:14:33 +01:00
ehofman
3b5792e7cc
minor upodate by John
2009-11-02 23:30:34 +01:00
ehofman
0be434936e
John Denker: Simplify redundant code and superfluous variable
2009-11-02 23:30:29 +01:00
ehofman
6e5673de21
Position and orientation fixes for the sound code, thanks to Tim Moore
2009-11-02 23:30:02 +01:00
ehofman
7efed53475
proper sound orientation(?) and comment out velocity since it messes with OpenAL in such a way that volume doesn't work properly anymore
2009-11-01 22:05:56 +01:00
ehofman
d2799cd832
another attempt at getting something useful without any result.
2009-10-31 22:57:27 +01:00
ehofman
9535c4e339
Commit the current state of affairs to see if it fixes the position code for others
2009-10-29 23:09:21 +01:00
ehofman
c56c520ab5
initlialize _playing for FGATC. Proper listerner orientation based on view offset. proper velocity orientation
2009-10-28 23:23:53 +01:00
ehofman
ad020f5fb5
Csaba Halasz: C++-ify ATCVoice WriteMessage
2009-10-26 18:55:40 +01:00
ehofman
11d15b4513
fix a pointer reference.
2009-10-26 18:55:31 +01:00
Tim Moore
fc71333bdd
Fix typo
2009-10-24 23:14:48 +02:00
ehofman
430fbe99fa
Use shared pointers for any reference to SGSoundSample
2009-10-24 19:52:09 +02:00
ehofman
f9445874a0
Don't make the SoundManager a memebr of the subsystem manager; It needs to be initialized very early and destroyed as late as possible. That doesn't work as a subsystem meber onless some sort of priority scheme gets implemented. Get rid of auto_ptr which doesn work for the samples either.
2009-10-24 19:51:39 +02:00
ehofman
9c8d6ee663
Add a proper typecast
2009-10-22 23:14:13 +02:00
ehofman
42b990ca1b
line up aircraft orientation and velocity vector
2009-10-22 23:14:13 +02:00
ehofman
6e2974ea57
Assorted small soundsystem related fixes.
2009-10-21 16:27:45 +02:00