Train Simulator NEXT
In This Topic
    GetSoundIndex function
    In This Topic

    This function queries the index of a sound by name.

    Syntax

    Copy Code
    int GetSoundIndex( string Name );

    Parameters

    Name

    Type: string

    The name of the sound.

    Returns

    Returns an int with the index of the sound.

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

    See Also