Forgive me if this is discussed elsewhere already; I've searched through the forum posts and didn't see anything.
I use AGK2 Tier 1, AGK2's IDE. I've been receiving this error, sometimes, when I run my .exe after my program compiles successfully:
Quote: "Uncaught exception:
Failed to create XAudio2 mastering voice"
It's confusing because it's so intermittent -- I'll write 100 lines of code, compile a program that runs successfully, add 20 lines and recompile and run, get the exception error, remove the 20 lines and recompile and run, still get the exception error.
I get it even with the simplest possible code:
// set window properties
SetWindowTitle( "Experiment InputReceiver" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
SetOrientationAllowed( 1, 1, 1, 1 )
do
Print("Hello!")
Sync()
loop
The weird thing is, I don't ~always~ get this exception. In fact, it's pretty uncommon; most of the time my code compiles just fine. And there's no correlation with using particular commands, definitions, functions, etc -- in fact, the most common way for me to cause this exception happens when I'm only adding comments to my code.
The only comprehensible trend I've noticed is that if I do get the exception error, no further editing of the main.agc file will fix it, and no .exe that was ever compiled by AGK2 will work thereafter (not even an unedited new project just printing FPS, not even exe files that worked just fine an hour ago and haven't been changed since).
Google just gives me a github link that's incomprehensible to me.
Anyone have any idea what might be going on?
Many thanks (and Merry Christmas!)
It's mean time. *averages*