tmp
[blender.git] / extern / audaspace / bindings / python / examples / playbackmanager.py
1 import aud, sys, time
2
3 device=aud.Device()
4 manager = aud.PlaybackManager(device)
5 sound1 = aud.Sound.file(sys.argv[1])
6 sound2 = aud.Sound.file(sys.argv[2])
7 sound3 = aud.Sound.file(sys.argv[3])
8 sound4 = aud.Sound.file(sys.argv[4])
9
10 manager.play(sound1, 0)
11 manager.play(sound2, 0)
12 manager.play(sound3, 1)
13 manager.play(sound4, 1)
14
15 manager.setVolume(0.2, 0)
16 time.sleep(5)
17 manager.setVolume(0.0, 1)
18 time.sleep(5)
19 manager.pause(0)
20 time.sleep(5)
21 manager.setVolume(0.5, 1)
22 manager.setVolume(1.0, 0)
23 time.sleep(5)
24 manager.stop(1)
25 manager.resume(0)
26
27 time.sleep(500)