mono / opentk

OpenTK is a set of bindings to OpenGL, OpenCL and OpenAL. This is not the main repository, just a temporary import to allow Mono developers to make changes to this module. Please do not contribute changes here, contribute them to the upstream maintainers at http://www.opentk.com
http://www.opentk.com
115 stars 66 forks source link

AL.LoadAll() needs a current AudioContext. #34

Open AlphaGarg opened 2 years ago

AlphaGarg commented 2 years ago

Good evening, all.

I'm getting the titular error upon calling new EffectsExtension();, which I'm doing right after creating a context and setting it as the current context. Searching around the internet for the error doesn't come up with any solutions, or even a specific cause. Removing the line that calls EffectsExtension's constructor allows the code to run as normal, including creation and playing of audio sources.

I really need effects to work in order for my project to be worthwhile - it's a game engine I'm developing so I can use it instead of Unity for my game and have a little more freedom over the code, especially when it comes to parallelisation, memory consumption, modding support, and licensing fees. But without effects like reverberation or low-pass filtres.. well, that just won't do.

So.. what can I do? I'm running the application through Mono (I am on Linux, specifically Pop!_OS 21.x), ALGetString.Version returns 1.1 ALSOFT 1.19.1, ALGetString.Vendor returns OpenAL Community, and ALGetString.Renderer returns OpenAL Soft.

As a side note, I notice a lot of open Issues with no replies, some very old.. does anyone read these?