Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hello, I have a strange issue concerning playing a new sound from OnSoundStopped. I have a method that starts playing a new sound, which I call identically from two different threads. When I call it from my main thread it works as expected, however when it's called from the OnSoundStopped method, it gives me the following error "Unhandled exception at 0x00007FFC6F25C658 (irrKlang.dll)" the source of it is the irrKlang thread. The method is executed, the error occures right after. I'm using the unlicensed x64 version, IDE: VisualStudio 2015 Community, OS: Win10 x64. The engine runs in multithreaded mode. I will provide any additional info if needed. Thanks in advance The method I'm calling:
variables:
|
||||
|
Don't start new sounds inside that function. Better is to record that you want to start a new sound inside that function, and then start the sound in the main thread again, which originally started irrklang. This should solve the problem. |
||||
|
Thanks for the reply, could you please include this information in the documentations, if it's not a system specific problem? |
||||
|
Yep, going to do (I think something like this is written somewhere in there, but I also didn't find it with just quickly searching for it.) |
|