Train Simulator NEXT
In This Topic
    SetSoundVolume function
    In This Topic

    This function sets a sound volume.

    Syntax

    Copy Code
    float SetSoundVolume(
        int SoundIndex,
        float Volume
    );

    Parameters

    SoundIndex

    Type: int

    The sound index.

    Volume

    Type: float

    The volume to apply. Volumes are limited from 0.0f to 2.0f.

    Returns

    Returns a float with the applied volume of the sound .

    Returns FLT_MAX if there was an internal error or the sound was not found.

    See Also