ehofman
a3b66adf51
add a new command line option: --show-sound-devices
2009-11-30 22:44: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
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
ehofman
e2678830ba
Use auto_ptr when calling SGSoundSample
2009-10-20 00:00:08 +02:00
ehofman
7d6631d9a6
remove a debugging left-over
2009-10-20 00:00:08 +02: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
afb0ada81f
Make sure the unbind method is called for all registered subsystems proir to deleting the subsystem manager.
2009-10-20 00:00:08 +02:00
ehofman
73d4b78396
explicitly activate the sound manager
2009-10-18 18:19:52 +02:00
frohlich
78aa4be170
Fix 64 bit linux builds.
...
Modified Files:
src/ATCDCL/ATCVoice.hxx
2009-10-17 23:58:41 +02:00
ehofman
1b08051597
SoundManager fixes
2009-10-17 14:02:46 +02:00
ehofman
a9b3fc7a56
move some of the sound postion and orientation calculations over to the sample class which also makes the main code nice and clean
2009-10-16 11:24:10 +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
c56113d0dd
add the option to tie a SampleGroup to the listener position and orientation
2009-10-08 10:38:05 +02:00
ehofman
5107a9d07f
(try to) properly align model and viewer
2009-10-07 08:23:41 +02:00
ehofman
b64259b295
allow disabling sound completely (note: openal gets initialized but shuts down a bit later leaving the soundmanager to handle only very specific commands). At this time by specifying '--prop:/sim/sound/enabled=false', not sure why '--disable-sound' doesn't work properly
2009-10-06 10:23:15 +02:00
ehofman
446b200edc
Add the Sound Manager before any other subsystem that uses it. This makes sure the SoundMgr is available at construction time which makes the code much cleaner. Call the update_last() after any other class
2009-10-06 10:23:03 +02:00
ehofman
86f462933d
Initial commit of the new sound system, expect more updates to follow
2009-10-06 10:22:09 +02:00
Tim Moore
5f134cdec8
Merge branch 'topic/atis' into merge/master-atis
2009-10-06 10:21:19 +02:00