Train Simulator NEXT
In This Topic
    GetSoundDesc_PropertyName
    In This Topic

    This function returns the name and the value of a sound property.

    Syntax

    Copy Code
    string GetSoundDesc_PropertyName(
        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 string with the property name.

    Returns an empty string if the sound property was not found.

    Returns INT32_MAX if there is an internal error.

    See Also