• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

READMEH A D29-Jul-20211.9 KiB4130

aeonwave_test1.cxxH A D29-Jul-20212 KiB8563

filters.cxxH A D29-Jul-20214.4 KiB170106

filters.hxxH A D29-Jul-20212.1 KiB7833

openal_test1.cxxH A D29-Jul-20214.4 KiB173127

readwav.cxxH A D29-Jul-202112.7 KiB424334

readwav.hxxH A D29-Jul-2021496 2617

sample.cxxH A D29-Jul-20213.5 KiB12976

sample.hxxH A D29-Jul-202118 KiB613215

sample_group.cxxH A D29-Jul-20219.9 KiB365261

sample_group.hxxH A D29-Jul-20217.6 KiB24977

soundmgr.hxxH A D29-Jul-202110.2 KiB36290

soundmgr_aeonwave.cxxH A D29-Jul-202120.1 KiB747576

soundmgr_openal.cxxH A D29-Jul-202125.1 KiB931697

soundmgr_test.cxxH A D29-Jul-20212.6 KiB11191

soundmgr_test2.cxxH A D29-Jul-20211.5 KiB6653

xmlsound.cxxH A D29-Jul-202114.9 KiB543370

xmlsound.hxxH A D29-Jul-20215.4 KiB18167

README

1
2All code in this directory uses the OpenAL coordinate system for maximum
3useablity. The OpenAL coordinate system is equal to that of OpenGL with the
4main difference that objects behind the viewer can still be heard:
5 - positive x is to the right
6 - positive y is upwards
7 - positive z is towards the back of the viewer/listener
8
9see: http://www.falloutsoftware.com/tutorials/gl/cartesian.gif
10
11All positions are in cartesian space with a unit length of one meter.
12
13Velocities are three tuples indicating speed and direction in the same space
14as positions do (so they are not in the models local space).
15
16
17There is one SoundMgr that handles multiple SoundGroup classes.
18Each SoundGroup class handles multiple SoundSample classes.
19
20A SoundSample class defines the properties of each individual sound like
21pitch, volume, position, orientation, sound cone paramters, etc. This
22class can be created all over the code but *has* to be assigned to a
23SampelGroup before you can hear it. Current sample groups are "atc",
24"avionics" and "fx" for the master airplane effects. The position of a
25SoundSample is relative to (0,0,0) of the model and hence relative to
26the base position of the SampleGroup.
27
28A SampleGroup class has to be assigned to the SoundManager to be heard
29and holds data of a group of samples (maybe 'sample cloud' might be a
30good description). This class has to be created for each individual
31model that can produce one or more sounds. The SampleGroup class can be
32altered by modifying it's volume, position and orientation.
33Repositioning this class also means repositioning all it's associated
34samples. Altering it's orientation also means repositioning the absolute
35(real world) position (and orientation) of the associated sound samples.
36
37The SoundMaganer can be repositioned which basically means moving the
38listener around. It's also possible to alter the listener orientation en
39velocity with this class, together with the master volume.
40
41