Difference between revisions of "Sound.loop"
Jump to navigation
Jump to search
(Created page with "<c>Sound.loop</c> controls whether a sound will play just once (false) or will repeat indefinitely (true) when played with Sound.play. <ms>s = file.loadSound("/sys/so...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<c>[[Sound]].loop</c> controls whether a sound will play just once (false) or will | <c>[[Sound]].loop</c> controls whether a sound will play just once (false) or will | ||
− | repeat indefinitely (true) when played with [[Sound.play | + | repeat indefinitely (true) when played with [[Sound.play]]. |
<ms>s = file.loadSound("/sys/sounds/bonus.wav") | <ms>s = file.loadSound("/sys/sounds/bonus.wav") | ||
− | + | s.loop = true | |
− | + | s.play; key.get; s.stop</ms> | |
[[Category:Mini Micro]] | [[Category:Mini Micro]] |
Latest revision as of 21:45, 28 April 2023
Sound.loop
controls whether a sound will play just once (false) or will
repeat indefinitely (true) when played with Sound.play.
s = file.loadSound("/sys/sounds/bonus.wav")
s.loop = true
s.play; key.get; s.stop