Deleting the old internal audaspace. Major changes from there are: - The whole library was refactored to use C++11. - Many stability and performance improvements. - Major Python API refactor: - Most requested: Play self generated sounds using numpy arrays. - For games: Sound list, random sounds and dynamic music. - Writing sounds to files. - Sequencing API. - Opening sound devices, eg. Jack. - Ability to choose different OpenAL devices in the user settings.
21 lines
433 B
Python
21 lines
433 B
Python
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) |