Train Simulator NEXT
In This Topic
    IsSoundOneShot function
    In This Topic

    This function queries if the sound is a one-shot sound (also called as triggered sound).

    Syntax

    Copy Code
    bool IsSoundOneShot( int SoundIndex );

    Parameters

    SoundIndex

    Type: int

    The sound index.

    Returns

    Returns a true if the sound is a one-shot sound.

    Returns false if there is an internal error or the sound is not a one-shot sound.

    See Also