diff options
author | Germano <germano.costa@ig.com.br> | 2018-02-01 03:11:01 +0300 |
---|---|---|
committer | Germano <germano.costa@ig.com.br> | 2018-02-01 03:11:01 +0300 |
commit | ea31f0ac3b877eb0df4c47d0c908d11d1bff33e4 (patch) | |
tree | 56e88cf2b29c33be2855d02dba41c50bceb0e685 /extern/audaspace/bindings/python/examples/convolution.py | |
parent | 22faf66c8b7ebb79405b87a74edfdc78a7f26fb0 (diff) |
tmp
Diffstat (limited to 'extern/audaspace/bindings/python/examples/convolution.py')
-rw-r--r-- | extern/audaspace/bindings/python/examples/convolution.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/extern/audaspace/bindings/python/examples/convolution.py b/extern/audaspace/bindings/python/examples/convolution.py new file mode 100644 index 00000000000..4de25b0336a --- /dev/null +++ b/extern/audaspace/bindings/python/examples/convolution.py @@ -0,0 +1,10 @@ +#!/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)
\ No newline at end of file |