diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-02-01 14:11:04 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-02-01 14:22:57 +0300 |
commit | 781dd5edb5b74ecb417a16c28eab31483fc3d11a (patch) | |
tree | e5c142f2eef1cbcb1ed6dc243ec9707fe64f8d5f /extern/audaspace/bindings/python/examples/randomSounds.py | |
parent | cd317fab65e1b6c1652ba7a58786a8cc5bd11843 (diff) |
Fix audaspace mess in 2.8
All these files were removed since accidental commit, revert and merge in 2.8.
ea31f0ac3b877e + 0a4e170c28cec + 11f9a23a286c17f + 7b27b10fa6a6
Diffstat (limited to 'extern/audaspace/bindings/python/examples/randomSounds.py')
-rw-r--r-- | extern/audaspace/bindings/python/examples/randomSounds.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/extern/audaspace/bindings/python/examples/randomSounds.py b/extern/audaspace/bindings/python/examples/randomSounds.py new file mode 100644 index 00000000000..113b0921f09 --- /dev/null +++ b/extern/audaspace/bindings/python/examples/randomSounds.py @@ -0,0 +1,21 @@ +import aud, sys, time + +device=aud.Device() +sound1 = aud.Sound.file(sys.argv[1]) +sound2 = aud.Sound.file(sys.argv[2]) +sound3 = aud.Sound.file(sys.argv[3]) +sound4 = aud.Sound.file(sys.argv[4]) +list=aud.Sound.list(True) + +list.addSound(sound1) +list.addSound(sound2) +list.addSound(sound3) +list.addSound(sound4) +mutable=aud.Sound.mutable(list) + +device.lock() +handle=device.play(mutable) +handle.loop_count=2 +device.unlock() + +time.sleep(500)
\ No newline at end of file |