---
name: "Arma 3: Sound: Sound Curves"
type: topic
aliases: ["Arma 3 Sound: Sound Curves"]
source: https://community.bistudio.com/wiki/Arma_3:_Sound:_Sound_Curves
revid: 339200
updated: 2023-04-27T16:20:25Z
---

# Arma 3: Sound: Sound Curves

### Sound Curves

Sound curve is a simple set of points on 2D graph, which define the relationship between two variables (usually distance and volume).

All sound curves have to be configured in the base class **CfgSoundCurves** (or directly in curve parameter)

> [!NOTE]
> - In array of points `{ x, value }`, x values must be ascending.
> - x values are rescaled to range, which means:\
>   using 0..1 values represent relative definition, while using meters represents absolute definition, but be sure that the highest x value is the same as range and the lowest x value is 0

> [!IMPORTANT]
> Some sound sources (from like `CfgAmmo`, e.g a mortar shell) beyond [terrain view distance](../commands/viewDistance.md) are not played.

```cpp
class CfgSoundCurves
{
    class InverseSquare1Curve
    {
        points[] =
        {
            { 0.0, 0.9751 },
            { 0.1, 0.6332 },
            { 0.2, 0.4307 },
            { 0.3, 0.3009 },
            { 0.4, 0.2128 },
            { 0.5, 0.1503 },
            { 0.6, 0.1043 },
            { 0.7, 0.0695 },
            { 0.8, 0.0426 },
            { 0.9, 0.0213 },
            { 1.0, 0.0041 }
        };
    };
};
```

**Example of configuration using curve class**

```cpp
class CfgSoundSets
{
    // volumeCurve parameter using curve class
    class Rifle_Shot1_SoundSet
    {
        soundShaders[] =
        {
            "MX_closeShot_SoundShader"
        };
        volumeCurve = InverseSquare1Curve;
    };
};
```

**Example of configuration using direct curve definition**

```cpp
class CfgSoundSets
{
    //volumeCurve direct definition
    class Rifle_Shot1_SoundSet
    {
        soundShaders[] =
        {
            "MX_closeShot_SoundShader"
        };
        volumeCurve[] =
        {
            { 0.0, 0.9751 },
            { 0.1, 0.6332 },
            { 0.2, 0.4307 },
            { 0.3, 0.3009 },
            { 0.4, 0.2128 },
            { 0.5, 0.1503 },
            { 0.6, 0.1043 },
            { 0.7, 0.0695 },
            { 0.8, 0.0426 },
            { 0.9, 0.0213 },
            { 1.0, 0.0041 }
        };
    };
};
```

<sub>Source: [BI Community Wiki — Arma 3: Sound: Sound Curves](https://community.bistudio.com/wiki/Arma_3:_Sound:_Sound_Curves) (revision 339200).</sub>
