Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Changes

Jump to: navigation, search

FlightGear Newsletter February 2011

166 bytes removed, 09:58, 5 February 2011
Sound files for 3D Audio
== Development news ==
===Sound files for 3D Audio===
Recently there There seems to be some confusion about what types of sound files are supported for 3D audio rendering. More and more stereo files showed up resulting in reports of soundmanager problems. Let's explain a bit more about how 3D audio works, especially for OpenAL.
A 3D audio, or spatialized audio, implementation consists of one listener (like the OpenGL viewer) and multiple audio sources. A listener is placed at a specific location and has an orientation (view direction). Sources are placed in the scene at their own location and have an emission direction which is used to calculate the sound cone for non omni-directional sounds (sound sources that sound louder in one direction and softer or even quiet in the opposite direction). Sound sources can best be seen as a single dot emitting sound waves.The relative positions of the sources and the listener is used to calculate where the sources should be positioned in the listeners sound sphere.
The relative positions of the sources and the listener are used to calculate where the sources should be positioned in the listeners sound sphere. Now if If a sound source would be anything but mono it is almost impossible to guess how to handle all the channels in 3D space;* do Do they get mixed together which makes stereo files rather useless anyhow.?* do the Do the separate tracks get positioned with a slight offset to each other, which basically ? This in effect means mixing them together at any distance but very nearwhen the source is not close to the listener.* or do Do they get positioned at the same location but with a sound direction offset of 180⁰, which again ? This means mixing them together for if the sound is omni-directional sources.
There is something to say for any of the choices but you can bet that if one of the three was chosen someone else comes by and wants it to be different.
For this reason it is specified that only mono files will be used for 3D audio processing and stereo files will be mixed using the stereo mixer instead. Trying to set a position or direction for a stereo file will result in an error like:
''Failed to load WAV file: Unsupported mode within an otherwise usable file type''
69
edits

Navigation menu