{"name":"Arma 3: Sound: cfgSoundCurves","title":"Arma 3: Sound: cfgSoundCurves","type":"topic","url":"https://community.bistudio.com/wiki/Arma_3:_Sound:_cfgSoundCurves","revid":339055,"updated":"2023-04-24T23:45:58Z","aliases":["Arma 3 Sound: cfgSoundCurves"],"markdown":"### CfgSoundCurves\n\nInstead of having to define many points every time you need to define a curve (for example for the rangeCurve in a SoundShader) you can use the class CfgSoundCurves to define specific sound curves and then just use the names of these soundCurves in your sound configurations.\n\nLet's look at an example CfgSoundCurves entry:\n\n```cpp\nclass CfgSoundCurves\n{\n    class closureVolumeCurve\n    {\n        points[] =\n        {\n            { 0.0, 1.0 },\n            { 0.5, 0.7 },\n            { 1.0, 0.0 }\n        };\n    };\n};\n```\n\nThis entry uses relative distance values (0 = 0m, 1 = maximum range) and is called \"closureVolumeCurve\".\nSo in an example SoundShader we can use: **rangeCurve = closureVolumeCurve** because we have defined it in cfgSoundCurves.","sections":[{"heading":"CfgSoundCurves","level":3,"markdown":"Instead of having to define many points every time you need to define a curve (for example for the rangeCurve in a SoundShader) you can use the class CfgSoundCurves to define specific sound curves and then just use the names of these soundCurves in your sound configurations.\n\nLet's look at an example CfgSoundCurves entry:\n\n```cpp\nclass CfgSoundCurves\n{\n    class closureVolumeCurve\n    {\n        points[] =\n        {\n            { 0.0, 1.0 },\n            { 0.5, 0.7 },\n            { 1.0, 0.0 }\n        };\n    };\n};\n```\n\nThis entry uses relative distance values (0 = 0m, 1 = maximum range) and is called \"closureVolumeCurve\".\nSo in an example SoundShader we can use: **rangeCurve = closureVolumeCurve** because we have defined it in cfgSoundCurves."}],"categories":["Arma 3: Sound"],"groups":["Configuration"]}