Hello, i have question about audio2 thread. I saw audio1 implementation with channels and mutex.
So i want to have effects, and been able to change effect parameters from main thread(game loop) but i know that it can be crash in native targets. Do i need to use mutex for that, or maybe there is another technique to achieve this? I have solution like this and this, but i feel that is not right.
Also with smooth effect parameters transition i have a problems, there is clicks, i mean like smooth volume fadeout if i do it from game thread, but this is another question.
-
Audio2 native and mutex
-
Audio2 native and mutex
You forgot to use the mutex in your process function. Normally there'd be more options like using atomics - but Haxe sadly still doesn't provide any of those. I'd be interested in having a look at those clicks, could you provide a small sample application for me to listen to them?