Fix music player's sound management
authorZefram <zefram@fysh.org>
Thu, 14 Aug 2014 14:04:42 +0000 (15:04 +0100)
committerZefram <zefram@fysh.org>
Fri, 15 Aug 2014 11:25:46 +0000 (12:25 +0100)
commit1d0687556a52891aeadc0e8d9a58e44c53cb826b
tree73bc6d002dc90a5a6dab751df636aa28781b6b22
parent049129d9b8010f2199f19c5cf3c2cded3262767d
Fix music player's sound management

If an operating music player was disconnected from the electrical network
or destroyed, it used to leave the music playing forever.  There was
also a glitch upon starting playing, as the music was started by the
form handler but then stopped when the run function realised it wasn't
receiving any power, because it hadn't demanded any yet.
technic/machines/LV/music_player.lua