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.
10 lines
340 B
Python
10 lines
340 B
Python
#!/usr/bin/python
|
|
import aud, sys, time, multiprocessing
|
|
device = aud.Device()
|
|
ir = aud.ImpulseResponse(aud.Sound.file(sys.argv[2]))
|
|
threadPool = aud.ThreadPool(multiprocessing.cpu_count())
|
|
sound = aud.Sound.file(sys.argv[1]).convolver(ir, threadPool)
|
|
handle = device.play(sound)
|
|
handle.volume = 0.1
|
|
while handle.status:
|
|
time.sleep(0.1) |