(Among developed countries I'm familiar with) it's only the USA that has the excessively loud train horns at level crossings, and a lot of crossings. In Europe, lights, bells (or a beeper thing) and automatic barriers are used instead, sometimes with automatic or manual infrared/visible cameras to confirm the crossing is clear of road vehicles.