Train Simulator NEXT
In This Topic
    GetSoundDesc_PropertyValue function
    In This Topic

    This function returns the value of a sound property.

    Syntax

    Copy Code
    float GetSoundDesc_PropertyValue(
        int SoundIndex,
        int PropertyIndex
    );

    Parameters

    SoundIndex

    Type: int

    The index of the sound.

    PropertyIndex

    Type: int

    The index of the property. The number of sound properties can be obtained by calling Sound_GetDesc()::NumProperties.

    Returns

    Returns a float with the property value.

    Returns 0.0f if the sound property was not found.

    Returns INT32_MAX if there is an internal error.

    See Also