stevel Posted January 26, 2019 Share Posted January 26, 2019 I'm going to ask this question at a very high level first, and then if needed dive into the details. Maybe someone will have an idea what is going wrong from the high level description.I'm including the T3D engine in my project as a part of our larger app. The App is a 64 bit application that has a button that opens a 3D window, which is based on the t3D engine.At the moment, everything seems to be working pretty well in that I can launch our app, and click on the button, and it initializes and opens the window, which is based on the engine, but if I plug in my headphones, and do the same thing, the engine crashes while loading the SFX module.It looks like the crash is associated with trying to load up the 'dllopen' routine from within the sound DLL. It seems to be failing to find that routine within the DLL.What it feels like to me, is that the engine is trying to load the sound DLLs, which are still 32bit dlls, and it's failing because we're building a 64 bit app.If anyone has any thoughts on this question, I would appreciate hearing them. I will be glad to post some more information if that would help on Monday. Quote Link to comment Share on other sites More sharing options...
Azaezel Posted January 26, 2019 Share Posted January 26, 2019 potentially... which SFX backend? Quote Link to comment Share on other sites More sharing options...
stevel Posted January 28, 2019 Author Share Posted January 28, 2019 Thanks for the reply. Just looking at the crash as I write this to try to answer your question. As I think I mentioned, the engine module manager is calling initialize system, which is executing module->initialize() for the fourth module (I == 3). Which is the SFXSystem.Looking a bit deeper in the call chain, SFXProvider is calling initialize all providers, and it's on the third provider (i == 2). Which is SFXDS.That third provider is calling init, and it seems to be SFXDSProvider, and that's where the crash occurs, so I think the answer to your question is DS, or direct sound. Let me know if I misunderstood either the question, or the call chain. Quote Link to comment Share on other sites More sharing options...
Azaezel Posted January 30, 2019 Share Posted January 30, 2019 Pretty sure the DS backend is so flakey future versions of the engine did away with it entirely in favor of just using openal soft... does the same occur when using the current largely stable (at time of writing) development fork in a similar manner exhibit similar behavior? Quote Link to comment Share on other sites More sharing options...
stevel Posted February 1, 2019 Author Share Posted February 1, 2019 I know this is a pretty ignorant question, but what controls which backends get loaded?I just loaded up the app I built from a cMake project from the 3.10.1 install, and DirectSound, OpenAl, and XAudio all show up in the options dialog, and all seem to work. So my plan would probably be to spend hours looking over my code, and trying to minimize differences between it and the cmake project I just built, but anything that could be done to educate me to reduce that time would be appreciated. Quote Link to comment Share on other sites More sharing options...
Azaezel Posted February 2, 2019 Share Posted February 2, 2019 https://github.com/GarageGames/Torque3D/blob/development/Tools/CMake/torque3d.cmake#L61-L63Or are you more asking abouthttps://github.com/GarageGames/Torque3D/blob/561f010f2e6411d8253d23f0cfcff794e81f60bf/Engine/source/sfx/null/sfxNullProvider.cpp#L47https://github.com/GarageGames/Torque3D/blob/561f010f2e6411d8253d23f0cfcff794e81f60bf/Engine/source/sfx/openal/sfxALProvider.cpp#L58and the like? Quote Link to comment Share on other sites More sharing options...
stevel Posted February 5, 2019 Author Share Posted February 5, 2019 Just for anyone who might have the same issue, I found the difference that was causing this crash. I had 'treat WChar_t as build in type' set to true in my project, and the t3d engine seems to be be unhappy with this setting.Once I set this option to false in my project, this crash seems to be resolved.(I also had some incorrect casts that were hiding what would have been a valid compiler complaint.)Thanks for your help, Azaezel. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.