Guys, who have worked with 3D audio in Python, tell me what I can use.
I looked at the audio in the pyglet, but it's not comfortable for me. When I need to play the sound in the loop, difficulties begin. I need to create a player, etc. I can't understand this.
I know about Libaudioverse, but it does not have good documentation and 3D sound examples.
OpenAL is a low-level audio library. I understand why a listener and source positions are needed, but there are parameters that I can't understand.
If I worked in C++, maybe I could find a wrapper over a low-level library. But in Python, I can't find it.
Ideally, I need a solution where I can just specify the coordinates of the listener and source, change it and update the parameters for playback in the game.
I will be glad to hear any information on this topic.
Thanks in advance!
try using sound_lib and the AGK sound_positioning.py file, that contains some formulas with which you can position audio
have a nice day.
3 (edited by magurp244 2018-06-14 04:23:39)
You can use PyAL with OpenAL Soft for 3D positional audio, Pyglet's driver scripts need a little tweaking to do the same. I have a few examples examples with custom player and source handlers available in my repository that also include more fancy things like HRTF and EFX effects like reverb, echo, etc.
I looked at libaudioverse and PyOpenAL.
If there were wrappers over OpenAL, there are no problems. But PyOpenAL has incomprehensible things. For example, orientation. The documentation does not say why and how to use it.