The locomotive whistles as it approaches the level crossing in order to alert drivers to its approach.