Updated for Visual Studio 2015

This commit is contained in:
turanszkij
2015-09-13 21:53:45 +02:00
parent 84255b3720
commit dd75d9cfb3
5 changed files with 24 additions and 8 deletions
+12 -2
View File
@@ -7,6 +7,7 @@
#include "wiBackLog.h"
#include "wiCpuInfo.h"
#include "wiSound.h"
#include "wiHelper.h"
namespace wiInitializer
@@ -40,8 +41,17 @@ namespace wiInitializer
if (requestedFeautures & WICKEDENGINE_INITIALIZE_SOUND)
{
wiSoundEffect::Initialize();
wiMusic::Initialize();
if (FAILED(wiSoundEffect::Initialize()) || FAILED(wiMusic::Initialize()))
{
stringstream ss("");
ss << "Failed to Initialize Audio Device!";
#if (_WIN32_WINNT >= 0x0602 /*_WIN32_WINNT_WIN8*/)
//
#else
ss << " Install June 2010 DirectX Redistributable!";
#endif
wiHelper::messageBox(ss.str());
}
}
}