Create OpenAL device in main() and store in RGSSThreadData

This commit is contained in:
Jonas Kulla 2014-12-23 20:32:16 +01:00
parent 3596fc568d
commit 5974d05380
2 changed files with 21 additions and 16 deletions

View file

@ -37,6 +37,7 @@
#include <stdint.h>
struct RGSSThreadData;
typedef struct ALCdevice_struct ALCdevice;
struct SDL_Window;
class EventThread
@ -225,6 +226,7 @@ struct RGSSThreadData
const char *argv0;
SDL_Window *window;
ALCdevice *alcDev;
Vec2 sizeResoRatio;
Vec2i screenOffset;
@ -236,10 +238,12 @@ struct RGSSThreadData
RGSSThreadData(EventThread *ethread,
const char *argv0,
SDL_Window *window,
ALCdevice *alcDev,
const Config& newconf)
: ethread(ethread),
argv0(argv0),
window(window),
alcDev(alcDev),
sizeResoRatio(1, 1),
config(newconf)
{}