Sound.stop

From MiniScript Wiki
Revision as of 23:00, 1 April 2020 by 71.226.33.30 (talk) (Created page with "<c>Sound.stop</c> stops this sound if it is currently playing. == Example == <ms>s = file.loadSound("/sys/sounds/bonus.wav") s.loop = true s.play; key.get; s.stop</ms> Ca...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sound.stop stops this sound if it is currently playing.

Example

s = file.loadSound("/sys/sounds/bonus.wav")
s.loop = true
s.play; key.get; s.stop