I was trying to do some work in Python with simulating 3D sound. I was trying to run this code (provided in the answer): Python openAL 3D sound and similar, both times receiving:
ModuleNotFoundError: No module named 'openal.audio'
I've installed OpenAL, PyAL, and tried installing an older version (uninstalled it and reinstalled the new one), but it still doesn't work.
I've also tried the following code:
from openal import *
class AudioSource:
def __init__(self, path_to_file):
self.src = oalOpen(path_to_file)
def play(self):
self.src.play()
self.src.position = (-100, 0, 0)
self.src.update()
which doesn't use the openal.audio package, but the position doesn't seem to have any effect on the sound source either. I'm open to any solution (including using a newer package if one is available that will produce 3D sound)