I tried this using surface and player and observed no difference. Also, I'm playing the siren sound which is quite long.
Reproduce
Load the little mod that simply creates a SoundPath for the siren sound. Then type the following console command:
Code: Select all
/c game.player.surface.play_sound{path="siren"}
Code: Select all
/c game.player.play_sound{path="siren"}