simgear/simgear/sound
2016-06-01 23:12:55 +02:00
..
.gitignore More ignore files, for 'make check' binaries 2010-08-08 09:55:31 +01:00
CMakeLists.txt Move all OpenAL function calls from SampleMgr to soundMgr 2016-05-27 14:40:49 +02:00
jet_ima4.wav Add test files for mulaw en IMA4 ADPCM 2016-05-30 11:50:11 +02:00
jet_ulaw.wav Add test files for mulaw en IMA4 ADPCM 2016-05-30 11:50:11 +02:00
jet.wav Initial commit of the new sound system, expect more updates to follow 2009-10-06 07:22:06 +02:00
openal_test1.cxx Make sure block align is in samples when calling alBufferi with AL_UNPACK_BLOCK_ALIGNMENT_SOFT 2016-06-01 23:12:55 +02:00
openal_test2.cxx Add IMA4 support 2016-05-30 14:17:16 +02:00
openal_test3.cxx Move all OpenAL function calls from SampleMgr to soundMgr 2016-05-27 14:40:49 +02:00
README (try to) properly align model and viewer 2009-10-07 08:19:33 +02:00
readwav.cxx Make sure block align is in samples when calling alBufferi with AL_UNPACK_BLOCK_ALIGNMENT_SOFT 2016-06-01 23:12:55 +02:00
readwav.hxx Make sure block align is in samples when calling alBufferi with AL_UNPACK_BLOCK_ALIGNMENT_SOFT 2016-06-01 23:12:55 +02:00
sample_group.cxx Move all OpenAL function calls from SampleMgr to soundMgr 2016-05-27 14:40:49 +02:00
sample_group.hxx Move all OpenAL function calls from SampleMgr to soundMgr 2016-05-27 14:40:49 +02:00
sample.cxx Move all OpenAL function calls from SampleMgr to soundMgr 2016-05-27 14:40:49 +02:00
sample.hxx Add IMA4 support 2016-05-30 14:17:16 +02:00
soundmgr_openal_private.hxx Add support for native mulaw encoded samples if the OpenAL implementation supports it 2016-05-30 11:46:41 +02:00
soundmgr_openal.cxx Make sure block align is in samples when calling alBufferi with AL_UNPACK_BLOCK_ALIGNMENT_SOFT 2016-06-01 23:12:55 +02:00
soundmgr_openal.hxx Add IMA4 support 2016-05-30 14:17:16 +02:00
xmlsound.cxx Make sure block align is in samples when calling alBufferi with AL_UNPACK_BLOCK_ALIGNMENT_SOFT 2016-06-01 23:12:55 +02:00
xmlsound.hxx Add the option to define volume and pitch using an expression 2016-05-31 13:40:46 +02:00

All code in this directory uses the OpenAL coordinate system for maximum
useablity. The OpenAL coordinate system is equal to that of OpenGL with the
main difference that objects behind the viewer can still be heard:
 - positive x is to the right
 - positive y is upwards
 - positive z is towards the back of the viewer/listener

see: http://www.falloutsoftware.com/tutorials/gl/cartesian.gif

All positions are in cartesian space with a unit length of one meter.

Velocities are three tuples indicating speed and direction in the same space
as positions do (so they are not in the models local space).


There is one SoundMgr that handles multiple SoundGroup classes.
Each SoundGroup class handles multiple SoundSample classes.

A SoundSample class defines the properties of each individual sound like 
pitch, volume, position, orientation, sound cone paramters, etc. This 
class can be created all over the code but *has* to be assigned to a 
SampelGroup before you can hear it. Current sample groups are "atc", 
"avionics" and "fx" for the master airplane effects. The position of a 
SoundSample is relative to (0,0,0) of the model and hence relative to 
the base position of the SampleGroup.

A SampleGroup class has to be assigned to the SoundManager to be heard 
and holds data of a group of samples (maybe 'sample cloud' might be a 
good description). This class has to be created for each individual 
model that can produce one or more sounds. The SampleGroup class can be 
altered by modifying it's volume, position and orientation. 
Repositioning this class also means repositioning all it's associated 
samples. Altering it's orientation also means repositioning the absolute 
(real world) position (and orientation) of the associated sound samples.

The SoundMaganer can be repositioned which basically means moving the 
listener around. It's also possible to alter the listener orientation en 
velocity with this class, together with the master volume.