Audio Configuration
The Audio configuration file is hardcoded to accept only a single file as valid: audio.odf . This file defines the attributes for all sounds used in Armada II.
Stock Configuration ODF Commands
sampleRate
Integer
This is the primary buffer sample play rate. This should match with the type of audio file that is being used for in-game effects for optimal performance.
samplerate = 22050 //For .ogg files //44100 for .wav files
bitsPerSample
Integer
The primary buffer bits per sample. This should match with the type of audio file that is being used for in-game effects for optimal performance.
bitspersample = 16
distanceFactor
Float
Determines how many meters for each unit to determine the 3D sound environment. In other words, how far away from the source sound effects are heard without consideration attentuation.
dopplerFactor
Float
The Doppler effect factor with 1.0 approximating real life. Doppler effect can be heard when moving the screen away from a sound effect source.
rolloffFactor
Float
The roll-off factor with 1.0 approximating real life. Roll-off deals with cut-off point on frequency curves (low and high pass filters).
rollofffactor = 0.1
minimumDistance3D
Float
The minimum distance in units from the sound source before attenuation begins.
minimumdistance3d = 100
maximumDistance3D
Float
The maximum distance in units from the sound source before the sound attenuates to zero.
maximumdistance3d= 100000000
streamBufferLength
Float
The length (size) of the stream buffer, in seconds.
streambufferlength = 2.0
streamBufferSections
Integer
The number of sections to split the stream into for streaming reads.