Fix audaspace mess in 2.8
All these files were removed since accidental commit, revert and merge in 2.8.ea31f0ac3b+0a4e170c28+11f9a23a28+7b27b10fa6
This commit is contained in:
13
extern/audaspace/bindings/python/examples/binaural.py
vendored
Normal file
13
extern/audaspace/bindings/python/examples/binaural.py
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/python
|
||||
import aud, sys, time, multiprocessing
|
||||
device = aud.Device()
|
||||
hrtf = aud.HRTF().loadLeftHrtfSet(".wav", sys.argv[2])
|
||||
threadPool = aud.ThreadPool(multiprocessing.cpu_count())
|
||||
source = aud.Source(0, 0, 0)
|
||||
sound = aud.Sound.file(sys.argv[1]).rechannel(1).binaural(hrtf, source, threadPool)
|
||||
handle = device.play(sound)
|
||||
|
||||
while handle.status:
|
||||
source.azimuth += 1
|
||||
print("Azimuth: " + str(source.azimuth))
|
||||
time.sleep(0.1)
|
||||
Reference in New Issue
Block a user