]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/xmlsound.cxx
Set to default distance attenuation function but change the parameters a but for...
[simgear.git] / simgear / sound / xmlsound.cxx
index 79a57c7f618e8764858144917c7be1552534bb32..479e312361d34c7bd631e1266a7034f6f2cf4a0a 100644 (file)
@@ -174,9 +174,10 @@ SGXmlSound::init(SGPropertyNode *root, SGPropertyNode *node,
 
    }
 
-   float reference_dist = node->getDoubleValue("reference-dist", 500.0);
-   float max_dist = node->getDoubleValue("max-dist", 3000.0);
+   // rule of thumb: make reference distance a 100th of the maximum distance.
+   float reference_dist = node->getDoubleValue("reference-dist", 60.0);
+   float max_dist = node->getDoubleValue("max-dist", 6000.0);
+
    //
    // set pitch properties
    //