Hi,
so I was wondering if people have any recommendations for 3d audio in python? I thought of libaudioverse, but I want something that runs on both windows and Mac.
It doesn't have to run on both, but if it did it would be nice.
Pages 1
You are not logged in. Please login or register.
AudioGames.net Forum → Developers room → 3d audio in python
Hi,
so I was wondering if people have any recommendations for 3d audio in python? I thought of libaudioverse, but I want something that runs on both windows and Mac.
It doesn't have to run on both, but if it did it would be nice.
To my knowledge this doesn't exist unless you want to fight OpenALSoft into working.
There's a reason I'm putting the effort in.
There's FMOD, but...
@3
Does FMod do proper aHRTF? As far as I know it's just a lowpass filter for sounds behind the listener.
@4, ot built-in, no. You can use SteamAudio for HRTF though.
Try my [OpenAL PyLite v1.2] wrapper, comes with various examples, uses OpenAL Soft, and handles most functions like HRTF, EFX, recording, etc. Just finished cleaning up a few little bugs in it so it should be fine with Python 3.
@magurp, doesn't it require to write your own encoder, though? I also remember me having issues where I could hear sources extremely far away, no matter what I did with the rolloff and max_distance factors. The stupid sound just refused to stop playing.
There is not an official wrapper for FMOD in Python. Most old ones use old versions of the library (1.0 I think) and don't work properly.
You may wish to try out soloud, Lucia's team was considering it earlier, though I don't know if it has 3d functionality.
Encoder? Are you referring to recording audio, or loading various file formats? As for volume drop off, I do recall you had an issue with that. Running some tests with the 3D Audio example and changing the rolloff factor to 0.5 seems to mute the sound, but I do hear a faint remnant. Other than a question of sensitivity, the only other way to handle that would likely be to adjust whether the sound is playing based on distance or a volume cutoff value.
Loading files, I thought the examples supported wave only. Not an issue, I just wanted to provide a clear picture. I am pretty sure you have posted a link to an already made encoder earlier, too.
I may have to give the examples another spin, then. Glad it wasn’t my personal issue.
SoLoud does have 3D audio support. It doesn't have much FX though, and any language bindings do not allow you to write new FX.
The examples by themselves can only handle wav format, yes. Though I have posted an example of loading vorbis files with PyOgg into an openal buffer [here], post 11.
@7, SoLoud supports 3d, but as 10 said, you can't roll your own effects on other languages like for example python. because it's a wrapper around it's generated code.
you only can write effects for it in c++.
Soloud does not support hrtf officially. I mean you might be able to get it via the openal Backend but you really don't want to use that specific backend as it's laggy and just doesn't worth it. Go with that miniaudio thing or another one that works on mac too, you can actually change the backends by checking the operating system after all.
Soloud is a good choice if you're not looking for hrtf, and the effects it provides for python suit audio games.
AudioGames.net Forum → Developers room → 3d audio in python
Generated in 0.018 seconds (51% PHP - 49% DB) with 11 queries