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 |
|
#include <fmodex/fmod_event.hpp> |
#include <stdio.h> |
int main(int argc, char *argv[]) |
{ |
FMOD_EVENTSYSTEM* eventsystem = 0; |
FMOD_EventSystem_Create(&eventsystem); |
//final code |
FMOD_EventSystem_Init(eventsystem, 5, FMOD_INIT_NORMAL, NULL, FMOD_EVENT_INIT_NORMAL); |
|
FMOD_EVENTQUEUE* eventqueue = 0; |
FMOD_EventSystem_CreateEventQueue(eventsystem, &eventqueue); |
|
FMOD_EVENTGROUP* eventgroup = 0; |
FMOD_EventSystem_GetGroup( |
eventsystem, |
"name", |
1, |
&eventgroup); |
|
FMOD_EVENT* event = 0; |
FMOD_EventGroup_GetEvent( |
eventgroup, |
"name", |
(FMOD_EVENT_MODE) 0, |
&event); |
|
FMOD_EVENTQUEUEENTRY* entry = 0; |
FMOD_EventSystem_CreateEventQueueEntry(eventsystem, event, &entry); |
|
FMOD_EventQueue_Add(eventqueue, entry, 1); //target call |
return 0; |
} |
|