-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
79 lines (70 loc) · 1.6 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
* main.cpp
*
* Created on: Jul 24, 2012
* Author: gregorytkach
*/
#include "engine.h"
#include "playerCompileConfig.h"
using namespace irrgame;
using namespace audio;
using namespace events;
using namespace io;
using namespace threads;
using namespace video;
#include <stdio.h>
#include <dlfcn.h>
#include <typeinfo>
int some(int a)
{
return 0;
}
#define signature_app_creator IEngineApplication* (*)()
#include "stdlib.h"
int main()
{
IAudioDriver* driver = createAudioDriver();
ISoundManager* manager = createSoundManager();
SAudioSource* src = manager->getAudioSource("/assets/test.wav");
ISoundNode* node = manager->addSoundNode(src);
node->play();
// IEnginePlayer* player = IEnginePlayer::createEnginePlayer();
//
// IAudioDriver* audioDrv = player->getAudioDriver();
//
// ISoundManager* mngr = player->getSoundManager();
//
// SAudioSource* src = mngr->getAudioSource("/home/developer08/Music/test.wav");
//
// mngr->addSoundNode(src);
//
// player->getConfigReader()->read(fileConfig);
//
// void* appHandle = 0;
//
// IEngineApplication* (*createIrrgameApp)();
//
// //open your application as static lib
// appHandle = dlopen(player->getConfigReader()->getEntry()->AppFile.cStr(),
// RTLD_NOW);
//
// c8* error = 0;
// error = dlerror();
// if(error)
// {
// //we have error
// IRR_ASSERT(false);
// }
//
// createIrrgameApp = (signature_app_creator) dlsym(appHandle,
// player->getConfigReader()->getEntry()->AppCreator.cStr());
//
// error = dlerror();
// IRR_ASSERT(error == 0);
//
// IEngineApplication* app = createIrrgameApp();
//
// IRR_ASSERT(app != 0);
//
// player->run(app);
}