Digital and Interactive Games 2015 - Week 5, Session 1

Mar 11, 2015 20:12


Digital and Interactive Games 2015, Week 5, Session 1
Sound Files - link to Irrklang site: http://www.ambiera.com/irrklang/

TestSetup

Insert basic code here:

#include
#include "irrKlang.h"
#pragma comment(lib, "irrKlang.lib")

using namespace irrklang;

int main() {
ISoundEngine* engine = createIrrKlangDevice();
if (!engine) {
std::cout << "Cannot start engine";
return 0;
}

engine->drop();

return 0;
}

.exe will look for irrklang.dll

“../media/getout.ogg”, true
, true - play in a loop.

irrklang setup - Visual Studio.

Properties
. Configuration Properties
. . C/C++
. . . General
. . . . Additional Include Directories
. . . . . Add include directory
. . Linker
. . . General
. . . . Additional Library directories
. . . . . Add lib\win32-visualstudio directory


Error: warning MSBB012: Targetpath() doesn't match the Linkers outputFile property value.
・ fixed.

game programming, tafe, programming, game design, c++

Previous post Next post
Up